mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-24 01:00:37 +00:00
glupload: Update GstVideoInfo after the buffer is mapped
gst_video_frame_map() will store an updated video info base on the video meta. In order to have the right stride and offset we should update that video info accordingly.
This commit is contained in:
parent
43866270ef
commit
94aa3ea228
1 changed files with 3 additions and 0 deletions
|
@ -317,6 +317,9 @@ gst_gl_upload_perform_with_buffer (GstGLUpload * upload, GstBuffer * buffer,
|
|||
return FALSE;
|
||||
}
|
||||
|
||||
/* update the video info from the one updated by frame_map using video meta */
|
||||
upload->in_info = upload->priv->frame.info;
|
||||
|
||||
if (!gst_gl_upload_perform_with_data (upload, upload->priv->tex_id,
|
||||
upload->priv->frame.data)) {
|
||||
return FALSE;
|
||||
|
|
Loading…
Reference in a new issue