[banshee] gst#: Fix pipeline because tee was not added in audio sink bin



commit 3740c1852f47a422366b59f9d2402ef6b769317a
Author: Olivier Dufour <olivier duff gmail com>
Date:   Thu Jun 23 22:56:35 2011 +0200

    gst#: Fix pipeline because tee was not added in audio sink bin
    
    Signed-off-by: Bertrand Lorentz <bertrand lorentz gmail com>

 .../Banshee.GStreamerSharp/PlayerEngine.cs         |    9 ++++++---
 1 files changed, 6 insertions(+), 3 deletions(-)
---
diff --git a/src/Backends/Banshee.GStreamerSharp/Banshee.GStreamerSharp/PlayerEngine.cs b/src/Backends/Banshee.GStreamerSharp/Banshee.GStreamerSharp/PlayerEngine.cs
index 315d96d..a12d523 100644
--- a/src/Backends/Banshee.GStreamerSharp/Banshee.GStreamerSharp/PlayerEngine.cs
+++ b/src/Backends/Banshee.GStreamerSharp/Banshee.GStreamerSharp/PlayerEngine.cs
@@ -38,6 +38,7 @@ using Mono.Unix;
 using Gst;
 using Gst.PbUtils;
 using Gst.BasePlugins;
+using Gst.CorePlugins;
 
 using Hyena;
 using Hyena.Data;
@@ -62,7 +63,7 @@ namespace Banshee.GStreamerSharp
             Element preamp;
             Element first;
             GhostPad visible_sink;
-            Element audiotee;
+            Tee audiotee;
             object pipeline_lock = new object ();
 
             public AudioSinkBin (IntPtr o) : base(o)
@@ -77,9 +78,11 @@ namespace Banshee.GStreamerSharp
                 first = hw_audio_sink;
 
                 // Our audio sink is a tee, so plugins can attach their own pipelines
-                audiotee = ElementFactory.Make ("tee", "audiotee");
+                audiotee = ElementFactory.Make ("tee", "audiotee") as Tee;
                 if (audiotee == null) {
                     Log.Error ("Can not create audio tee!");
+                } else {
+                    Add (audiotee);
                 }
 
                 volume = FindVolumeProvider (hw_audio_sink);
@@ -111,7 +114,7 @@ namespace Banshee.GStreamerSharp
                 // Link the first tee pad to the primary audio sink queue
                 Pad sinkpad = first.GetStaticPad ("sink");
                 Pad pad = audiotee.GetRequestPad ("src%d");
-                audiotee ["alloc-pad"] = pad;
+                audiotee.AllocPad = pad;
                 pad.Link (sinkpad);
                 first = audiotee;
 



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