flitetestsrc: fix caps fixation

Make caps writable before changing them.
This commit is contained in:
Tim-Philipp Müller 2012-09-13 01:34:45 +01:00
parent b5581cd0a4
commit d95620ccd1

View file

@ -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);