mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-18 07:47:17 +00:00
small test script
Original commit message from CVS: small test script
This commit is contained in:
parent
2f1ce27730
commit
cfc8e88be3
1 changed files with 16 additions and 0 deletions
16
swig/test.pl
Executable file
16
swig/test.pl
Executable 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]);
|
Loading…
Reference in a new issue