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 */
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 */
Element decoder = ElementFactory.Make ("vorbisdec", "decode");
Element decoder = ElementFactory.Make ("vorbisfile", "decode");
/* and an audio sink */
Element osssink = ElementFactory.Make ("osssink", "play_audio");
@ -32,8 +32,8 @@ public class GstTest
bin.Add (osssink);
/* connect the elements */
filesrc.Connect (decoder);
decoder.Connect (osssink);
filesrc.Link (decoder);
decoder.Link (osssink);
/* start playing */
bin.SetState (ElementState.Playing);