From 78f518f4cabf008963ddd1c67f8140ced7a66b09 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Dr=C3=B6ge?= Date: Wed, 25 Nov 2009 10:10:52 +0100 Subject: [PATCH] Update samples to use decodebin2/playbin2 --- samples/DecodeBinTranscoder.cs | 6 +++--- samples/PlayBinPlayer.cs | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/samples/DecodeBinTranscoder.cs b/samples/DecodeBinTranscoder.cs index 3f784624a7..1383c1491b 100644 --- a/samples/DecodeBinTranscoder.cs +++ b/samples/DecodeBinTranscoder.cs @@ -30,7 +30,7 @@ public class DecodeBinTranscoder : IDisposable { private FileSink filesink; private Element audioconvert; private Element encoder; - private DecodeBin decodebin; + private DecodeBin2 decodebin; private uint progress_timeout; @@ -87,7 +87,7 @@ public class DecodeBinTranscoder : IDisposable { filesink = ElementFactory.Make ("filesink", "filesink") as FileSink; audioconvert = ElementFactory.Make ("audioconvert", "audioconvert"); encoder = ElementFactory.Make ("wavenc", "wavenc"); - decodebin = ElementFactory.Make ("decodebin", "decodebin") as DecodeBin; + decodebin = ElementFactory.Make ("decodebin2", "decodebin") as DecodeBin2; decodebin.NewDecodedPad += OnNewDecodedPad; pipeline.Add (filesrc, decodebin, audioconvert, encoder, filesink); @@ -99,7 +99,7 @@ public class DecodeBinTranscoder : IDisposable { pipeline.Bus.AddWatch (new BusFunc (OnBusMessage)); } - private void OnNewDecodedPad (object o, DecodeBin.NewDecodedPadArgs args) { + private void OnNewDecodedPad (object o, DecodeBin2.NewDecodedPadArgs args) { Pad sinkpad = audioconvert.GetStaticPad ("sink"); if (sinkpad.IsLinked) { diff --git a/samples/PlayBinPlayer.cs b/samples/PlayBinPlayer.cs index 5087b2aa69..7e1dbae6a5 100644 --- a/samples/PlayBinPlayer.cs +++ b/samples/PlayBinPlayer.cs @@ -7,7 +7,7 @@ public class PlayBinPlayer { private static MainLoop loop; private static string[] songs; private static int song_idx = 0; - private static PlayBin play; + private static PlayBin2 play; public static void Main (string[] args) { if (args.Length < 1) { @@ -20,7 +20,7 @@ public class PlayBinPlayer { Gst.Application.Init (); loop = new MainLoop (); - play = ElementFactory.Make ("playbin", "play") as PlayBin; + play = ElementFactory.Make ("playbin2", "play") as PlayBin2; if (play == null) { Console.WriteLine ("error creating a playbin gstreamer object");