diff options
author | Jason Newton <nevion@gmail.com> | 2009-08-23 15:49:27 -0700 |
---|---|---|
committer | Jason Newton <nevion@gmail.com> | 2009-09-29 23:50:54 -0700 |
commit | 3053badf0684e077fca8e8fddb43b4e9f2a5c30c (patch) | |
tree | f09a825b45a7e0d99b96f9a8dba8180d97124847 /src/modules/module-equalizer-sink.c | |
parent | 263b683437b9a88722f80fd0abea9ca1998fbd36 (diff) | |
download | pulseaudio-3053badf0684e077fca8e8fddb43b4e9f2a5c30c.tar.gz |
module-equalizer-sink: resync with ladspa parent sink
Diffstat (limited to 'src/modules/module-equalizer-sink.c')
-rwxr-xr-x | src/modules/module-equalizer-sink.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/modules/module-equalizer-sink.c b/src/modules/module-equalizer-sink.c index 9a79cb975..f634d5ea4 100755 --- a/src/modules/module-equalizer-sink.c +++ b/src/modules/module-equalizer-sink.c @@ -998,9 +998,11 @@ static void sink_input_moving_cb(pa_sink_input *i, pa_sink *dest) { pa_sink_input_assert_ref(i); pa_assert_se(u = i->userdata); - - pa_sink_set_asyncmsgq(u->sink, dest->asyncmsgq); - pa_sink_update_flags(u->sink, PA_SINK_LATENCY|PA_SINK_DYNAMIC_LATENCY, dest->flags); + if (dest) { + pa_sink_set_asyncmsgq(u->sink, dest->asyncmsgq); + pa_sink_update_flags(u->sink, PA_SINK_LATENCY|PA_SINK_DYNAMIC_LATENCY, dest->flags); + } else + pa_sink_set_asyncmsgq(u->sink, NULL); } //ensure's memory allocated is a multiple of v_size |