small test script

Original commit message from CVS:
small test script
This commit is contained in:
Thomas Vander Stichele 2001-08-13 14:45:28 +00:00
parent 2f1ce27730
commit cfc8e88be3

16
swig/test.pl Executable file
View file

@ -0,0 +1,16 @@
#!/usr/bin/perl -w
use Gst;
Gst::init ();
my $bin = Gst::gst_pipeline_new ("pipeline")
or die "Cannot create pipeline !\n";
print "DEBUG: bin: $bin\n";
my $parse = Gst::gst_elementfactory_make ("mp3parse", "parse")
or die "Cannot create mp3parse element !\n";
my $disksrc = Gst::gst_elementfactory_make ("disksrc", "disk_source")
or die "Cannot create disksrc element !\n";
print "DEBUG: disksrc: $disksrc\n";
Gst::gobject_set ($disksrc, "location", $ARGV[1]);