How to use GstVideoAffineTransformationMeta in gstglimagesink
Sebastian Dröge
sebastian at centricular.com
Tue May 17 07:26:41 UTC 2016
On So, 2016-05-15 at 16:57 -0700, Grégoire Gentil wrote:
> Hello,
>
> I'm interested to use GstVideoAffineTransformationMeta in
> gstglimagesink, especially in gst_glimage_sink_on_draw:
>
> https://cgit.freedesktop.org/gstreamer/gst-plugins-bad/tree/ext/gl/gstglimagesink.c#n2028
>
> I have a pad probe installed in my pipeline in which I do:
>
> static GstPadProbeReturn cb_have_data(GstPad *pad, GstPadProbeInfo
> *info, CustomData *data) {
>
> GstBuffer *buffer = gst_pad_probe_info_get_buffer (info);
>
> GstVideoAffineTransformationMeta *meta =
> gst_buffer_add_video_affine_transformation_meta (buffer);
Do you get warnings about the buffer not being writable? You should do
something like
info->data = gst_mini_object_make_writable (info->data);
and then get the buffer.
Apart from that what you're doing there should work.
--
Sebastian Dröge, Centricular Ltd · http://www.centricular.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 949 bytes
Desc: This is a digitally signed message part
URL: <https://lists.freedesktop.org/archives/gstreamer-devel/attachments/20160517/8b9828c4/attachment.sig>
More information about the gstreamer-devel
mailing list