mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-17 03:35:21 +00:00
inter: Truncate the caps as part of the fixating
This commit is contained in:
parent
04dbd095a1
commit
1363a244a0
2 changed files with 2 additions and 1 deletions
|
@ -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…
Reference in a new issue