mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-10-05 18:22:23 +00:00
flitetestsrc: fix caps fixation
Make caps writable before changing them.
This commit is contained in:
parent
b5581cd0a4
commit
d95620ccd1
1 changed files with 3 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue