Re: Porting perl-GStreamer to gst 1.0



"Timm Murray" <tmurray wumpus-cave net>:
Thanks, I was able to get a basic pipeline going:

https://github.com/frezik/Gst

Excellent!

The original C tutorial uses timed_pop_filtered() like this:

msg = gst_bus_timed_pop_filtered (bus, GST_CLOCK_TIME_NONE, GST_MESSAGE_ERROR | GST_MESSAGE_EOS);

From what I gathered from Glib::Flags, this should work like this:

my $msg = $bus->timed_pop_filtered( GStreamer::CLOCK_TIME_NONE, [ 'error', 'eos' ]);

But this causes the program to promptly exit without outputting anything.

Your translation seems correct to me.  Maybe there is a problem with the wrapper GStreamer::CLOCK_TIME_NONE.  
The original definition is

#define GST_CLOCK_TIME_NONE ((GstClockTime) -1)

GstClockTime is an unsigned 64 bit integer, so this expression will overflow.  The docs say the value should 
be 18446744073709551615 (i.e., 2^64-1).  What's the value of GStreamer::CLOCK_TIME_NONE for you?  (I can't 
test right now.)

-Torsten


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