mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-18 14:26:43 +00:00
oss4sink: notify "volume" property on open to make apps query initial volume
The initial volume might not be the property default, so emit a notify on the volume property to make apps get an up-to-date reading of the current volume. https://bugzilla.gnome.org/show_bug.cgi?id=631053
This commit is contained in:
parent
8cfec6a88d
commit
644c939fcb
1 changed files with 7 additions and 1 deletions
|
@ -545,7 +545,13 @@ non_block:
|
|||
static gboolean
|
||||
gst_oss4_sink_open_func (GstAudioSink * asink)
|
||||
{
|
||||
return gst_oss4_sink_open (asink, FALSE);
|
||||
if (!gst_oss4_sink_open (asink, FALSE))
|
||||
return FALSE;
|
||||
|
||||
/* the initial volume might not be the property default, so notify
|
||||
* application to make it get a reading of the current volume */
|
||||
g_object_notify (G_OBJECT (asink), "volume");
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
static gboolean
|
||||
|
|
Loading…
Reference in a new issue