From: Nicolas Dufresne Date: Fri, 9 May 2014 21:59:43 +0000 (-0400) Subject: glupload: Update GstVideoInfo after the buffer is mapped X-Git-Tag: 1.19.3~511^2~1989^2~1488 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=94aa3ea228e5fb2fdc0f55e662716ba9e4775698;p=platform%2Fupstream%2Fgstreamer.git 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. --- diff --git a/gst-libs/gst/gl/gstglupload.c b/gst-libs/gst/gl/gstglupload.c index eaa34fe..af1528f 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;