Re: Fetching GstBuffer Flags in GStreamer1
- From: Emmanuele Bassi <ebassi gmail com>
- To: Timm Murray <tmurray wumpus-cave net>
- Cc: "gtk-perl-list gnome org" <gtk-perl-list gnome org>
- Subject: Re: Fetching GstBuffer Flags in GStreamer1
- Date: Wed, 24 Dec 2014 10:36:02 +0000
hi Timm;
I think this case requires an API addition to GStreamer, instead of trying to work around it in Perl. GstBuffer should get a get_flags() method to replace the macro - as macros have always been fairly unfriendly to language bindings.
you should file a bug against GStreamer.
ciao,
Emmanuele.
On Wednesday, December 24, 2014, Timm Murray <
tmurray wumpus-cave net> wrote:
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
--
http://www.bassi.io[ ] ebassi [@
gmail.com]
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]