gl/upload: update the video info on mapping a video frame

The buffer should contain the most specific data on how the data is
formatted.  We should use this information.

https://bugzilla.gnome.org/show_bug.cgi?id=729896
This commit is contained in:
Matthew Waters 2014-05-11 12:48:52 +10:00 committed by Tim-Philipp Müller
parent 480784e368
commit 5cdfd51172

View file

@ -341,7 +341,7 @@ gst_gl_upload_perform_with_buffer (GstGLUpload * upload, GstBuffer * buffer,
}
/* update the video info from the one updated by frame_map using video meta */
upload->in_info = upload->priv->frame.info;
gst_gl_upload_set_format (upload, &upload->priv->frame.info);
if (!gst_gl_upload_perform_with_data (upload, upload->priv->tex_id,
upload->priv->frame.data)) {