mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-24 02:31:03 +00:00
deinterlace: Remove the interlaced field from the output caps if deinterlacing is enabled
This commit is contained in:
parent
20668a0782
commit
810c60a6f3
1 changed files with 8 additions and 0 deletions
|
@ -1511,6 +1511,14 @@ gst_deinterlace_setcaps (GstPad * pad, GstCaps * caps)
|
|||
othercaps = gst_caps_ref (caps);
|
||||
}
|
||||
|
||||
if (otherpad == self->srcpad && self->mode != GST_DEINTERLACE_MODE_DISABLED) {
|
||||
GstStructure *s;
|
||||
|
||||
othercaps = gst_caps_make_writable (othercaps);
|
||||
s = gst_caps_get_structure (othercaps, 0);
|
||||
gst_structure_remove_field (s, "interlaced");
|
||||
}
|
||||
|
||||
if (!gst_pad_set_caps (otherpad, othercaps))
|
||||
goto caps_not_accepted;
|
||||
|
||||
|
|
Loading…
Reference in a new issue