Commit 3ab66676 authored by Philippe Normand's avatar Philippe Normand Committed by Sebastian Dröge
Browse files

pulsesink: gst_pulsesink_get_mute: set result earlier.

In the cases where no buffer was process yet or the index is not
available, get_pulsesink_get_mute() would unconditionally return
parent 6aade594
......@@ -1905,6 +1905,7 @@ gst_pulsesink_get_mute (GstPulseSink * psink)
gboolean mute = FALSE;
pa_threaded_mainloop_lock (psink->mainloop);
mute = psink->mute;
if (pbuf == NULL || pbuf->stream == NULL)
......@@ -1923,8 +1924,6 @@ gst_pulsesink_get_mute (GstPulseSink * psink)
goto unlock;
mute = psink->mute;
if (o)
pa_operation_unref (o);
Supports Markdown
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