GNOME Bugzilla – Bug 451856
make volume property a double instead of int
Last modified: 2007-06-28 17:31:46 UTC
The bacon-vide-widget's "volume" property is currently an integer with the range 0..100. But the underlying gstreamer element's volume is double with range 0..1; I think this should just be exposed like that. This is also important for the browser plugin since the volume range the scriptables expose to the browser vary: GMP is 0..100 while narrowspace uses 0..255.
Created attachment 90800 [details] [review] proposed patch
It collides with the work being done in bug 450635 (Jens' patch to remove the bacon volume widget), and the xine backend would need to be modified as well.
The patch does modify bvw-xine.c too.
Created attachment 90810 [details] [review] updated patch
Looks good, please commit.
* src/totem.c: * src/totem.h: * src/totem-private.h: * src/backend/bacon-video-widget.h: * src/backend/bacon-video-widget-xine.c: * src/backend/bacon-video-widget-gst-0.10.c: Use double for the volume instead of integer. Bug #451856.