/usr/share/doc/libgstreamer-perl/examples/manual/elementcreate.pl is in libgstreamer-perl 0.19-1+b1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 | #!/usr/bin/perl
use strict;
use warnings;
use GStreamer -init;
# $Id$
# create element, method #2
my $factory = GStreamer::ElementFactory -> find("fakesrc");
unless ($factory) {
print "Failed to find factory of type 'fakesrc'\n";
exit -1;
}
my $element = $factory -> create("source");
unless ($element) {
print "Failed to create element, even though its factory exists!\n";
exit -1;
}
|