gl/upload: update the video info on mapping a video frame
authorMatthew Waters <ystreet00@gmail.com>
Sun, 11 May 2014 02:48:52 +0000 (12:48 +1000)
committerTim-Philipp Müller <tim@centricular.com>
Sat, 9 Dec 2017 19:31:40 +0000 (19:31 +0000)
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

index 1a17f3d..9c5fd8f 100644 (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)) {