update for 0.6.4

svn path=/trunk/gtk-sharp/; revision=19633
This commit is contained in:
John Luke 2003-11-04 23:45:04 +00:00
parent 912980c396
commit 4173fe2616

View file

@ -18,10 +18,10 @@ public class GstTest
/* create a disk reader */ /* create a disk reader */
Element filesrc = ElementFactory.Make ("filesrc", "disk_source"); Element filesrc = ElementFactory.Make ("filesrc", "disk_source");
filesrc.SetProperty ("location", new GLib.Value (args[0])); filesrc.SetProperty ("location", args[0]);
/* now it's time to get the decoder */ /* now it's time to get the decoder */
Element decoder = ElementFactory.Make ("vorbisdec", "decode"); Element decoder = ElementFactory.Make ("vorbisfile", "decode");
/* and an audio sink */ /* and an audio sink */
Element osssink = ElementFactory.Make ("osssink", "play_audio"); Element osssink = ElementFactory.Make ("osssink", "play_audio");
@ -32,8 +32,8 @@ public class GstTest
bin.Add (osssink); bin.Add (osssink);
/* connect the elements */ /* connect the elements */
filesrc.Connect (decoder); filesrc.Link (decoder);
decoder.Connect (osssink); decoder.Link (osssink);
/* start playing */ /* start playing */
bin.SetState (ElementState.Playing); bin.SetState (ElementState.Playing);