From 5cdfd5117261617e3d7e35d56a48a5f89242b4df Mon Sep 17 00:00:00 2001 From: Matthew Waters Date: Sun, 11 May 2014 12:48:52 +1000 Subject: [PATCH] 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 --- gst-libs/gst/gl/gstglupload.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gst-libs/gst/gl/gstglupload.c b/gst-libs/gst/gl/gstglupload.c index 1a17f3d1fb..9c5fd8feba 100644 --- a/gst-libs/gst/gl/gstglupload.c +++ b/gst-libs/gst/gl/gstglupload.c @@ -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)) {