[banshee] GtkBaseClient: Set PulseAudio media.role property (bgo#574300)



commit 7d33259ba768aad97f87c022bce06f65f976806e
Author: Robin Stocker <robin nibor org>
Date:   Sat Oct 1 11:37:30 2011 +0200

    GtkBaseClient: Set PulseAudio media.role property (bgo#574300)
    
    Signed-off-by: Bertrand Lorentz <bertrand lorentz gmail com>

 .../Banshee.Gui/GtkBaseClient.cs                   |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/src/Core/Banshee.ThickClient/Banshee.Gui/GtkBaseClient.cs b/src/Core/Banshee.ThickClient/Banshee.Gui/GtkBaseClient.cs
index 7d2c2aa..c5c5675 100644
--- a/src/Core/Banshee.ThickClient/Banshee.Gui/GtkBaseClient.cs
+++ b/src/Core/Banshee.ThickClient/Banshee.Gui/GtkBaseClient.cs
@@ -152,6 +152,10 @@ namespace Banshee.Gui
             Gdk.Global.ProgramClass = Application.InternalName;
             GLib.Global.ApplicationName = "Banshee";
 
+            // TODO: Set this to "video" when we're playing a video. PulseAudio doesn't treat it differently
+            // than "music" for now, but it would be more correct.
+            Environment.SetEnvironmentVariable ("PULSE_PROP_media.role", "music");
+
             if (ApplicationContext.Debugging) {
                 GLib.Log.SetLogHandler ("Gtk", GLib.LogLevelFlags.Critical, GLib.Log.PrintTraceLogFunction);
                 Gdk.Window.DebugUpdates = !String.IsNullOrEmpty (Environment.GetEnvironmentVariable ("GDK_DEBUG_UPDATES"));



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