mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-19 14:56:36 +00:00
wasapi2: Fix initial mute/volume setting
Fix up volume/mute change flag setting Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/2809>
This commit is contained in:
parent
598f2ab73f
commit
8fee6bf785
1 changed files with 2 additions and 2 deletions
|
@ -1381,7 +1381,7 @@ gst_wasapi2_ring_buffer_set_mute (GstWasapi2RingBuffer * buf, gboolean mute)
|
|||
if (buf->volume_object)
|
||||
hr = buf->volume_object->SetMute (mute, nullptr);
|
||||
else
|
||||
buf->volume_changed = TRUE;
|
||||
buf->mute_changed = TRUE;
|
||||
g_mutex_unlock (&buf->volume_lock);
|
||||
|
||||
return S_OK;
|
||||
|
@ -1421,7 +1421,7 @@ gst_wasapi2_ring_buffer_set_volume (GstWasapi2RingBuffer * buf, gfloat volume)
|
|||
if (buf->volume_object)
|
||||
hr = buf->volume_object->SetMasterVolume (volume, nullptr);
|
||||
else
|
||||
buf->mute_changed = TRUE;
|
||||
buf->volume_changed = TRUE;
|
||||
g_mutex_unlock (&buf->volume_lock);
|
||||
|
||||
return hr;
|
||||
|
|
Loading…
Reference in a new issue