deinterlace: Remove the interlaced field from the output caps if deinterlacing is enabled
This commit is contained in:
parent
20668a0782
commit
810c60a6f3
@ -1511,6 +1511,14 @@ gst_deinterlace_setcaps (GstPad * pad, GstCaps * caps)
|
|||||||
othercaps = gst_caps_ref (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))
|
if (!gst_pad_set_caps (otherpad, othercaps))
|
||||||
goto caps_not_accepted;
|
goto caps_not_accepted;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user