Re: Porting perl-GStreamer to gst 1.0



On 13.11.2014 00:01, Timm Murray wrote:
Thanks, I was able to get a basic pipeline going:

https://github.com/frezik/Gst

I don't know if you've changed it yet, but in your examples/hello.pl,
you can write some things more idiomatically.  Instead of

Gst::Element::set_state( $pipeline, "playing" );
my $bus = Gst::Element::get_bus( $pipeline );
my $msg = $bus->timed_pop_filtered( Gst::CLOCK_TIME_NONE,
                                    [ 'error', 'eos' ]);
Gst::Element::set_state( $pipeline, "null" );

make use of the class hierarchy to write

$pipeline->set_state( "playing" );
my $bus = $pipeline->get_bus;
my $msg = $bus->timed_pop_filtered( Gst::CLOCK_TIME_NONE,
                                    [ 'error', 'eos' ]);
$pipeline->set_state( "null" );


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]