From: Matthew Waters Date: Mon, 20 Oct 2014 15:52:05 +0000 (+1100) Subject: videoaggregator: fixate the parts of the caps we don't know how to deal with X-Git-Tag: 1.19.3~507^2~10106 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=75413ae9aa3057503732f563195d7b70b0398b86;p=platform%2Fupstream%2Fgstreamer.git videoaggregator: fixate the parts of the caps we don't know how to deal with fixes glvideomixer with video/x-raw,width=foo i.e. no format field. --- diff --git a/gst-libs/gst/video/gstvideoaggregator.c b/gst-libs/gst/video/gstvideoaggregator.c index 83bf08be69..e24bb212e4 100644 --- a/gst-libs/gst/video/gstvideoaggregator.c +++ b/gst-libs/gst/video/gstvideoaggregator.c @@ -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);