[banshee/stable-1.6] [GStreamer] Fix gconf saving/restoration of volume
- From: Gabriel Burt <gburt src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [banshee/stable-1.6] [GStreamer] Fix gconf saving/restoration of volume
- Date: Thu, 17 Jun 2010 20:53:35 +0000 (UTC)
commit 254bb84703ed0955aec26fb3e1662514bd81fc6c
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 7929f2a..f964c26 100644
--- a/src/Backends/Banshee.GStreamer/Banshee.GStreamer/PlayerEngine.cs
+++ b/src/Backends/Banshee.GStreamer/Banshee.GStreamer/PlayerEngine.cs
@@ -189,7 +189,7 @@ namespace Banshee.GStreamer
is_initialized = true;
- if (!bp_supports_stream_volume (handle)) {
+ if (!bp_audiosink_has_volume (handle)) {
Volume = (ushort)PlayerEngineService.VolumeSchema.Get ();
}
}
@@ -534,7 +534,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);
}
@@ -855,7 +855,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]