mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 04:01:08 +00:00
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
This commit is contained in:
parent
c4ef8d2cad
commit
5d8e7598ac
1 changed files with 2 additions and 2 deletions
|
@ -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");
|
||||
|
|
Loading…
Reference in a new issue