videoaggregator: fixate the parts of the caps we don't know how to deal with
authorMatthew Waters <matthew@centricular.com>
Mon, 20 Oct 2014 15:52:05 +0000 (02:52 +1100)
committerMatthew Waters <matthew@centricular.com>
Mon, 20 Oct 2014 15:53:02 +0000 (02:53 +1100)
fixes glvideomixer with video/x-raw,width=foo i.e. no format field.

gst-libs/gst/video/gstvideoaggregator.c

index 83bf08be699d2e11a2d55ca643e77b48dee523f0..e24bb212e478d3c8355f40aaddb1266fdab19ed7 100644 (file)
@@ -628,6 +628,9 @@ gst_videoaggregator_update_src_caps (GstVideoAggregator * vagg)
       gst_structure_fixate_field_nearest_fraction (s, "framerate", best_fps_n,
           best_fps_d);
 
+      /* fixate the the rest of the fields */
+      caps = gst_caps_fixate (caps);
+
       gst_structure_get_int (s, "width", &info.width);
       gst_structure_get_int (s, "height", &info.height);
       gst_structure_get_fraction (s, "framerate", &info.fps_n, &info.fps_d);