inter: Truncate the caps as part of the fixating
This commit is contained in:
parent
04dbd095a1
commit
1363a244a0
@ -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);
|
||||
|
||||
|
@ -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");
|
||||
|
Loading…
x
Reference in New Issue
Block a user