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:
Nicolas Dufresne 2014-05-09 17:59:43 -04:00 committed by Tim-Philipp Müller
parent 43866270ef
commit 94aa3ea228

View 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;