[Bug 771750] v4l2videobufferpool: Need set right video meta
GStreamer (GNOME Bugzilla)
bugzilla at gnome.org
Fri Nov 25 02:33:31 UTC 2016
https://bugzilla.gnome.org/show_bug.cgi?id=771750
--- Comment #5 from kevin <kevinbing.song at gmail.com> ---
Sorry for later response. No work environment to give you log.
You can check below code in gstglupload.c.
static gboolean
_dma_buf_upload_accept (gpointer impl, GstBuffer * buffer, GstCaps * in_caps,
GstCaps * out_caps)
{
/* Update video info based on video meta */
if (meta) {
in_info->width = meta->width;
in_info->height = meta->height;
for (i = 0; i < meta->n_planes; i++) {
in_info->offset[i] = meta->offset[i];
in_info->stride[i] = meta->stride[i];
}
}
...
plane_size = gst_gl_get_plane_data_size (in_info, NULL, i);
if (!gst_buffer_find_memory (buffer, in_info->offset[i], plane_size,
&mems_idx[i], &length, &mems_skip[i]))
return FALSE;
}
Maybe gst_buffer_find_memory() should use mem->maxsize for mplane buffer. Our
driver output NV12 video with mplane. And append some memory at the end of Y
plane.
As the work is pending, I will check it later.
--
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