mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-12 10:25:33 +00:00
gl/download: fixup YUY2/UYVY download
Regression from 2da979831e
as it did
not update the download code to reflect the change in texture format.
This commit is contained in:
parent
9cfd5e5d04
commit
63831b7dd2
1 changed files with 12 additions and 2 deletions
|
@ -245,8 +245,18 @@ _gst_gl_download_perform_with_data_unlocked (GstGLDownload * download,
|
|||
download->in_tex[0]->tex_id = texture_id;
|
||||
|
||||
if (!download->out_tex[0]) {
|
||||
gst_gl_memory_setup_wrapped (download->context, &download->info,
|
||||
data, download->out_tex);
|
||||
if (GST_VIDEO_INFO_FORMAT (&download->info) == GST_VIDEO_FORMAT_YUY2
|
||||
|| GST_VIDEO_INFO_FORMAT (&download->info) == GST_VIDEO_FORMAT_UYVY) {
|
||||
download->out_tex[0] = gst_gl_memory_wrapped (download->context,
|
||||
GST_VIDEO_GL_TEXTURE_TYPE_RGBA,
|
||||
GST_VIDEO_INFO_COMP_WIDTH (&download->info, 1),
|
||||
GST_VIDEO_INFO_HEIGHT (&download->info),
|
||||
GST_VIDEO_INFO_PLANE_STRIDE (&download->info, 0), data[0], NULL,
|
||||
NULL);
|
||||
} else {
|
||||
gst_gl_memory_setup_wrapped (download->context, &download->info,
|
||||
data, download->out_tex);
|
||||
}
|
||||
}
|
||||
|
||||
for (i = 0; i < GST_VIDEO_INFO_N_PLANES (&download->info); i++) {
|
||||
|
|
Loading…
Reference in a new issue