From 9ff30d2643578a1c1af3f206fa4f0b430633a9d1 Mon Sep 17 00:00:00 2001 From: Alp Toker Date: Sat, 29 Jul 2006 03:54:38 +0000 Subject: [PATCH] 2006-07-29 Alp Toker * sample/GstPlayer.cs: Remove the 2002 GStreamer sample. gst-sharp has long since found a new home. svn path=/trunk/gtk-sharp/; revision=63136 --- ChangeLog | 5 +++++ sample/GstPlayer.cs | 52 --------------------------------------------- 2 files changed, 5 insertions(+), 52 deletions(-) delete mode 100644 sample/GstPlayer.cs diff --git a/ChangeLog b/ChangeLog index cc329d703..9faaef03f 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2006-07-29 Alp Toker + + * sample/GstPlayer.cs: Remove the 2002 GStreamer sample. gst-sharp has + long since found a new home. + 2006-07-28 Mike Kestner * *: huge amounts of surgery to split off gnome-sharp module. diff --git a/sample/GstPlayer.cs b/sample/GstPlayer.cs deleted file mode 100644 index 9565ce677..000000000 --- a/sample/GstPlayer.cs +++ /dev/null @@ -1,52 +0,0 @@ -// GstPlayer.cs - a simple Vorbis media player using GStreamer -// -// Author: Alp Toker -// -// Copyright (c) 2002 Alp Toker - -using System; -using Gst; - -public class GstTest -{ - static void Main(string[] args) - { - if (args.Length != 1) - { - Console.WriteLine ("usage: Gst.Player.exe FILE.ogg"); - return; - } - - Application.Init (); - - /* create a new bin to hold the elements */ - Pipeline bin = new Pipeline("pipeline"); - - /* create a disk reader */ - Element filesrc = ElementFactory.Make ("filesrc", "disk_source"); - filesrc.SetProperty ("location", args[0]); - - /* now it's time to get the decoder */ - Element decoder = ElementFactory.Make ("vorbisfile", "decode"); - - /* and an audio sink */ - Element osssink = ElementFactory.Make ("osssink", "play_audio"); - - /* add objects to the main pipeline */ - bin.Add (filesrc); - bin.Add (decoder); - bin.Add (osssink); - - /* connect the elements */ - filesrc.Link (decoder); - decoder.Link (osssink); - - /* start playing */ - bin.SetState (ElementState.Playing); - - while (bin.Iterate ()); - - /* stop the bin */ - bin.SetState (ElementState.Null); - } -}