From: Matthew Waters Date: Sun, 11 May 2014 02:48:52 +0000 (+1000) Subject: gl/upload: update the video info on mapping a video frame X-Git-Tag: 1.19.3~511^2~1989^2~1480 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=5cdfd5117261617e3d7e35d56a48a5f89242b4df;p=platform%2Fupstream%2Fgstreamer.git 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 --- diff --git a/gst-libs/gst/gl/gstglupload.c b/gst-libs/gst/gl/gstglupload.c index 1a17f3d..9c5fd8f 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)) {