mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-20 23:36:38 +00:00
glmemory: Provide correct size on download
Provide the right size to GL when downloading. This fixes downloading from GLMemory that where created for libav. https://bugzilla.gnome.org/show_bug.cgi?id=744246
This commit is contained in:
parent
33050939ff
commit
3405eec996
1 changed files with 2 additions and 1 deletions
|
@ -585,7 +585,8 @@ _transfer_download (GstGLContext * context, GstGLMemory * gl_mem)
|
||||||
GST_DEBUG ("downloading texture %u using pbo %u",
|
GST_DEBUG ("downloading texture %u using pbo %u",
|
||||||
gl_mem->tex_id, gl_mem->transfer_pbo);
|
gl_mem->tex_id, gl_mem->transfer_pbo);
|
||||||
|
|
||||||
size = ((GstMemory *) gl_mem)->maxsize;
|
size = gst_gl_get_plane_data_size (&gl_mem->info, &gl_mem->valign,
|
||||||
|
gl_mem->plane);
|
||||||
plane_start = _find_plane_frame_start (gl_mem);
|
plane_start = _find_plane_frame_start (gl_mem);
|
||||||
format = _gst_gl_format_from_gl_texture_type (gl_mem->tex_type);
|
format = _gst_gl_format_from_gl_texture_type (gl_mem->tex_type);
|
||||||
type = GL_UNSIGNED_BYTE;
|
type = GL_UNSIGNED_BYTE;
|
||||||
|
|
Loading…
Reference in a new issue