From: Tim-Philipp Müller Date: Thu, 13 Sep 2012 00:34:45 +0000 (+0100) Subject: flitetestsrc: fix caps fixation X-Git-Tag: 1.19.3~507^2~14941 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=d95620ccd18cce5e8eb60b4169ad7e1763819cae;p=platform%2Fupstream%2Fgstreamer.git flitetestsrc: fix caps fixation Make caps writable before changing them. --- diff --git a/ext/flite/gstflitetestsrc.c b/ext/flite/gstflitetestsrc.c index e7efc20..15bcaab 100644 --- a/ext/flite/gstflitetestsrc.c +++ b/ext/flite/gstflitetestsrc.c @@ -177,6 +177,9 @@ gst_flite_test_src_fixate (GstBaseSrc * bsrc, GstCaps * caps) GstStructure *structure; gint channels; + caps = gst_caps_truncate (caps); + caps = gst_caps_make_writable (caps); + structure = gst_caps_get_structure (caps, 0); gst_structure_fixate_field_nearest_int (structure, "channels", 2);