Commit d95620cc authored by Tim-Philipp Müller's avatar Tim-Philipp Müller 🐠

flitetestsrc: fix caps fixation

Make caps writable before changing them.
parent b5581cd0
......@@ -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);
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment