Re: Fetching GstBuffer Flags in GStreamer1
- From: Timm Murray <tmurray wumpus-cave net>
- To: gtk-perl-list gnome org
- Subject: Re: Fetching GstBuffer Flags in GStreamer1
- Date: Tue, 23 Dec 2014 19:31:30 -0600
After a little more investigation into the C code, GST_BUFFER_FLAG_IS_SET calls into GstMiniObject to check the flags. There is a mini_object() method on GstBuffer, so I gave this a try:
if(! ($data_buf->mini_object->flags & 'flag_delta_unit') ) {
$is_key_frame = 1;
}
That leaves me with the error "Could not get field 'dispose' at . . . " with the line number pointing to the 'if' statement above.
The original GStreamer module has a little xs code to help with the flags on GstBuffer. That might be the way to go for GStreamer1, too, but I'd like to see if we can do this in Perl first.
Thanks,
Timm
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]