Commit 5d8e7598 authored by Vivia Nikolaidou's avatar Vivia Nikolaidou Committed by Sebastian Dröge

deinterlace: Fix typo to not change the input caps but our filtered caps

Changing the input caps and not using them anymore afterwards is useless, and
it breaks negotiation in pipelines like:

gst-launch-1.0 videotestsrc ! "video/x-raw,framerate=25/1,interlace-mode=interleaved" !
  deinterlace fields=all ! "video/x-raw,framerate=50/1,interlace-mode=progressive" !
  fakesink
parent c4ef8d2c
......@@ -2347,8 +2347,8 @@ gst_deinterlace_getcaps (GstDeinterlace * self, GstPad * pad, GstCaps * filter)
gst_caps_unref (tmp);
tmp = NULL;
for (len = gst_caps_get_size (caps); len > 0; len--) {
GstStructure *s = gst_caps_get_structure (caps, len - 1);
for (len = gst_caps_get_size (tmp2); len > 0; len--) {
GstStructure *s = gst_caps_get_structure (tmp2, len - 1);
if (pad == self->sinkpad)
gst_structure_remove_field (s, "interlace-mode");
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment