mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-18 07:47:17 +00:00
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 FALSE. https://bugzilla.gnome.org/show_bug.cgi?id=610337
This commit is contained in:
parent
6aade594ac
commit
3ab666762f
1 changed files with 1 additions and 2 deletions
|
@ -1905,6 +1905,7 @@ gst_pulsesink_get_mute (GstPulseSink * psink)
|
|||
gboolean mute = FALSE;
|
||||
|
||||
pa_threaded_mainloop_lock (psink->mainloop);
|
||||
mute = psink->mute;
|
||||
|
||||
pbuf = GST_PULSERING_BUFFER_CAST (GST_BASE_AUDIO_SINK (psink)->ringbuffer);
|
||||
if (pbuf == NULL || pbuf->stream == NULL)
|
||||
|
@ -1923,8 +1924,6 @@ gst_pulsesink_get_mute (GstPulseSink * psink)
|
|||
goto unlock;
|
||||
}
|
||||
|
||||
mute = psink->mute;
|
||||
|
||||
unlock:
|
||||
if (o)
|
||||
pa_operation_unref (o);
|
||||
|
|
Loading…
Reference in a new issue