From: Tim-Philipp Müller Date: Tue, 25 Dec 2012 16:48:43 +0000 (+0000) Subject: oss4sink: notify "volume" property on open to make apps query initial volume X-Git-Tag: 1.19.3~509^2~6155 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=644c939fcb76650c82bef3d2778412baff7f6116;p=platform%2Fupstream%2Fgstreamer.git 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 --- diff --git a/sys/oss4/oss4-sink.c b/sys/oss4/oss4-sink.c index c15061b..eb3ada0 100644 --- a/sys/oss4/oss4-sink.c +++ b/sys/oss4/oss4-sink.c @@ -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