glupload: Update GstVideoInfo after the buffer is mapped
authorNicolas Dufresne <nicolas.dufresne@collabora.com>
Fri, 9 May 2014 21:59:43 +0000 (17:59 -0400)
committerTim-Philipp Müller <tim@centricular.com>
Sat, 9 Dec 2017 19:31:40 +0000 (19:31 +0000)
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.

gst-libs/gst/gl/gstglupload.c

index eaa34fe..af1528f 100644 (file)
@@ -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;