glvideomixer: don't clobber unnecessary GstVideoInfo fields
authorMatthew Waters <ystreet00@gmail.com>
Tue, 19 Aug 2014 04:44:29 +0000 (14:44 +1000)
committerMatthew Waters <ystreet00@gmail.com>
Tue, 19 Aug 2014 07:16:06 +0000 (17:16 +1000)
otherwise we might clobber other important fields such as the frame rate.

ext/gl/gstglvideomixer.c

index 7dcb936..b9a1d68 100644 (file)
@@ -342,8 +342,8 @@ _update_info (GstVideoAggregator * vagg, GstVideoInfo * info)
   GST_OBJECT_UNLOCK (vagg);
 
   if (best_width > 0 && best_height > 0) {
-    gst_video_info_set_format (info, GST_VIDEO_INFO_FORMAT (info),
-        best_width, best_height);
+    info->width = best_width;
+    info->height = best_height;
     ret = TRUE;
   }