[banshee/gst#] [gst#] Fix pipeline because tee was not added in audio sink bin
- From: Olivier Dufour <dufoli src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [banshee/gst#] [gst#] Fix pipeline because tee was not added in audio sink bin
- Date: Thu, 23 Jun 2011 20:59:09 +0000 (UTC)
commit 7da521750d38036e1b80bdf25819ed96d0c05b45
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
.../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 0ad61df..541e40c 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]