[Bug 761747] New: Client-draw problem in glimagesink (Android)
GStreamer (GNOME Bugzilla)
bugzilla at gnome.org
Tue Feb 9 06:48:47 UTC 2016
https://bugzilla.gnome.org/show_bug.cgi?id=761747
Bug ID: 761747
Summary: Client-draw problem in glimagesink (Android)
Classification: Platform
Product: GStreamer
Version: git master
OS: Linux
Status: NEW
Severity: normal
Priority: Normal
Component: gst-plugins-bad
Assignee: gstreamer-bugs at lists.freedesktop.org
Reporter: gregoire at gentil.com
QA Contact: gstreamer-bugs at lists.freedesktop.org
GNOME version: ---
First, documentation in the source code is not correct here:
https://cgit.freedesktop.org/gstreamer/gst-plugins-bad/tree/ext/gl/gstglimagesink.c#n538
The arguments are context and sample.
Secondly, it seems that GstVideoAffineTransformationMeta is always NULL. In an
Android 6.0.1 Gstreamer-master-git tutorial-5-derived application, I have:
g_signal_connect(G_OBJECT(data->glimagesink), "client-draw",
G_CALLBACK(client_draw_cb), data);
static gboolean client_draw_cb(GstElement *sink, GLuint texture, GstSample
*sample, CustomData *data) {
GstBuffer *buf = gst_sample_get_buffer(sample);
GstVideoAffineTransformationMeta *atm =
gst_buffer_get_video_affine_transformation_meta(buf);
//atm is NULL all the time
atm = gst_buffer_add_video_affine_transformation_meta(buf);
//atm is NULL again
GstVideoAffineTransformationMeta is null and it can't be created.
To give the big picture, my objective is to crop the video. I tried glOrthof
but as I return FALSE because I don't want to deal with the texture, it's
discarded by the original code. Fair enough. So I wanted to use a
GstVideoAffineTransformationMeta. I can't access or create any
GstVideoAffineTransformationMeta in this callback.
--
You are receiving this mail because:
You are the QA Contact for the bug.
You are the assignee for the bug.
More information about the gstreamer-bugs
mailing list