Commit cf584105 authored by Jan Schmidt's avatar Jan Schmidt
Browse files

pulsesink: Convert an erroneous assertion

Occasionally, we get a change callback for an old stream, triggering
the assertion unnecessarily. Just ignore such callbacks.
parent ca25de8f
...@@ -1516,9 +1516,11 @@ gst_pulsesink_sink_input_info_cb (pa_context * c, const pa_sink_input_info * i, ...@@ -1516,9 +1516,11 @@ gst_pulsesink_sink_input_info_cb (pa_context * c, const pa_sink_input_info * i,
if (!pbuf->stream) if (!pbuf->stream)
goto done; goto done;
g_assert (i->index == pa_stream_get_index (pbuf->stream)); /* If the index doesn't match our current stream,
* it implies we just recreated the stream (caps change)
psink->volume = pa_sw_volume_to_linear (pa_cvolume_max (&i->volume)); */
if (i->index == pa_stream_get_index (pbuf->stream))
psink->volume = pa_sw_volume_to_linear (pa_cvolume_max (&i->volume));
done: done:
pa_threaded_mainloop_signal (psink->mainloop, 0); pa_threaded_mainloop_signal (psink->mainloop, 0);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment