diff options
author | Sebastian Dröge <sebastian.droege@collabora.co.uk> | 2009-11-25 10:10:52 +0100 |
---|---|---|
committer | Sebastian Dröge <sebastian.droege@collabora.co.uk> | 2009-11-25 10:10:52 +0100 |
commit | 78f518f4cabf008963ddd1c67f8140ced7a66b09 (patch) | |
tree | 9dab070d72d4eb017faedb2672b16e2c11f29aef | |
parent | 0ec40a54ee8231fd92896d17abb9ba6ababc9851 (diff) |
Update samples to use decodebin2/playbin2
-rw-r--r-- | samples/DecodeBinTranscoder.cs | 6 | ||||
-rw-r--r-- | samples/PlayBinPlayer.cs | 4 |
2 files changed, 5 insertions, 5 deletions
diff --git a/samples/DecodeBinTranscoder.cs b/samples/DecodeBinTranscoder.cs index 3f78462..1383c14 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 5087b2a..7e1dbae 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"); |