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:
Tim-Philipp Müller 2012-12-25 16:48:43 +00:00
parent 8cfec6a88d
commit 644c939fcb

View file

@ -545,7 +545,13 @@ non_block:
static gboolean static gboolean
gst_oss4_sink_open_func (GstAudioSink * asink) 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 static gboolean