GNOME Bugzilla – Bug 631053
oss4sink: totem does not show correct volume on startup
Last modified: 2012-12-25 16:58:10 UTC
Created attachment 171460 [details] [review] patch fixing issue. On Solaris, when you start totem, the volume slider shows that the audio device is muted with volume set to 0. On Solaris we use the OSSv4 plugin and the OSSv4 sink plugin uses the StreamVolume interface which is supported by totem. However, this plugin does not trigger an notify::volume signal on startup which causes the volume to be left at -1, as set in the bacon_video_widget_init() function in the src/backend/bacon-video-widget-gst0.10.c file. This simple patch fixes the bacon_video_widget_get_volume code to actually call the GStreamer plugin to get the volume level if the value is unset, and this fixes the problem. Can this go upstream?
The OSS plugin should notify us of the current volume when the device gets opened instead.
Untested: commit 579678edf134001e84a07f8bd16c96411cca6a42 Author: Tim-Philipp Müller <tim@centricular.net> Date: Tue Dec 25 16:48:43 2012 +0000 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
Sorry, it's commit 644c939fcb76650c82bef3d2778412baff7f6116