inter: Truncate the caps as part of the fixating

This commit is contained in:
Sebastian Dröge 2014-10-22 19:28:48 +02:00
parent 04dbd095a1
commit 1363a244a0
2 changed files with 2 additions and 1 deletions

View file

@ -433,6 +433,7 @@ gst_inter_audio_src_fixate (GstBaseSrc * src, GstCaps * caps)
GST_DEBUG_OBJECT (src, "fixate");
caps = gst_caps_make_writable (caps);
caps = gst_caps_truncate (caps);
structure = gst_caps_get_structure (caps, 0);

View file

@ -371,7 +371,7 @@ gst_inter_video_src_fixate (GstBaseSrc * src, GstCaps * caps)
GST_DEBUG_OBJECT (src, "fixate");
caps = gst_caps_make_writable (caps);
caps = gst_caps_truncate (caps);
structure = gst_caps_get_structure (caps, 0);
gst_structure_fixate_field_string (structure, "format", "I420");