diff options
author | Tim-Philipp Müller <tim@centricular.net> | 2012-09-13 01:34:45 +0100 |
---|---|---|
committer | Tim-Philipp Müller <tim@centricular.net> | 2012-09-13 01:34:45 +0100 |
commit | d95620ccd18cce5e8eb60b4169ad7e1763819cae (patch) | |
tree | 071631fd918abf8aea94ccf6b78947509b533bd0 /ext | |
parent | b5581cd0a4eeaa17d4250e3ac93f8408b22ea248 (diff) | |
download | gstreamer-plugins-bad-d95620ccd18cce5e8eb60b4169ad7e1763819cae.tar.gz |
flitetestsrc: fix caps fixation
Make caps writable before changing them.
Diffstat (limited to 'ext')
-rw-r--r-- | ext/flite/gstflitetestsrc.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/ext/flite/gstflitetestsrc.c b/ext/flite/gstflitetestsrc.c index e7efc20b8..15bcaab73 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); |