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
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