[banshee] [GStreamer] Fix gconf saving/restoration of volume



commit 6d7950f05e597f8c043448e814de0c05d67ef746
Author: Gabriel Burt <gabriel burt gmail com>
Date:   Thu Jun 17 13:46:21 2010 -0700

    [GStreamer] Fix gconf saving/restoration of volume
    
    This should be done iff the audio sink doesn't have a volume property,
    not based on whether the playbin implements the GstStreamVolume.

 .../Banshee.GStreamer/PlayerEngine.cs              |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/src/Backends/Banshee.GStreamer/Banshee.GStreamer/PlayerEngine.cs b/src/Backends/Banshee.GStreamer/Banshee.GStreamer/PlayerEngine.cs
index a2a428c..d64f4c7 100644
--- a/src/Backends/Banshee.GStreamer/Banshee.GStreamer/PlayerEngine.cs
+++ b/src/Backends/Banshee.GStreamer/Banshee.GStreamer/PlayerEngine.cs
@@ -195,7 +195,7 @@ namespace Banshee.GStreamer
 
             is_initialized = true;
 
-            if (!bp_supports_stream_volume (handle)) {
+            if (!bp_audiosink_has_volume (handle)) {
                 Volume = (ushort)PlayerEngineService.VolumeSchema.Get ();
             }
         }
@@ -563,7 +563,7 @@ namespace Banshee.GStreamer
                 }
 
                 bp_set_volume (handle, value / 100.0);
-                if (!bp_supports_stream_volume (handle)) {
+                if (!bp_audiosink_has_volume (handle)) {
                     PlayerEngineService.VolumeSchema.Set ((int)value);
                 }
 
@@ -880,7 +880,7 @@ namespace Banshee.GStreamer
         private static extern bool bp_can_seek (HandleRef player);
 
         [DllImport ("libbanshee.dll")]
-        private static extern bool bp_supports_stream_volume (HandleRef player);
+        private static extern bool bp_audiosink_has_volume (HandleRef player);
 
         [DllImport ("libbanshee.dll")]
         private static extern bool bp_set_position (HandleRef player, ulong time_ms);



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]