From 803f2c3dc0c6f9ea19b87da6e11d0db282a35457 Mon Sep 17 00:00:00 2001 From: Nicolas Dufresne Date: Fri, 9 May 2014 17:59:43 -0400 Subject: [PATCH] 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. --- gst-libs/gst/gl/gstglupload.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/gst-libs/gst/gl/gstglupload.c b/gst-libs/gst/gl/gstglupload.c index eaa34fe665..af1528f87b 100644 --- a/gst-libs/gst/gl/gstglupload.c +++ b/gst-libs/gst/gl/gstglupload.c @@ -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;