mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-03-30 12:49:40 +00:00
interlace: Make caps writable before modifying them
Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/1373>
This commit is contained in:
parent
ed3417219a
commit
290d0432c3
1 changed files with 1 additions and 0 deletions
|
@ -881,6 +881,7 @@ gst_interlace_getcaps (GstPad * pad, GstInterlace * interlace, GstCaps * filter)
|
|||
|
||||
tcaps = gst_pad_get_pad_template_caps (otherpad);
|
||||
othercaps = gst_pad_peer_query_caps (otherpad, clean_filter);
|
||||
othercaps = gst_caps_make_writable (othercaps);
|
||||
if (othercaps) {
|
||||
if (pattern == GST_INTERLACE_PATTERN_2_2) {
|
||||
for (i = 0; i < gst_caps_get_size (othercaps); ++i) {
|
||||
|
|
Loading…
Reference in a new issue