interlace: Don't fail negotiation if capsfilters decide framerate
authorVivia Nikolaidou <vivia@ahiru.eu>
Thu, 18 Jun 2020 19:56:57 +0000 (22:56 +0300)
committerVivia Nikolaidou <vivia@ahiru.eu>
Wed, 24 Jun 2020 08:15:48 +0000 (11:15 +0300)
commit7c7ac7a0dc044d6837b9fc38af8b319970c2b90e
tree9d4c3a98a03653ed65fb151c953c784fa02ea518
parent581d76b41a7acb0c2c657ba7e6aeab8d358c4f9a
interlace: Don't fail negotiation if capsfilters decide framerate

Try to negotiate if the framerates on either sides of the interlace are
decided using capsfilters and the framerates are correct. Otherwise the
following pipelines would fail to negotiate:

gst-launch-1.0 videotestsrc !
video/x-raw,framerate=24/1,interlace-mode=progressive ! interlace
field-pattern=2 ! video/x-raw,framerate =30/1 ! fakesink

gst-launch-1.0 videotestsrc !
video/x-raw,framerate=60/1,interlace-mode=progressive ! interlace
field-pattern=0 ! video/x-raw,framerate=30/1 ! fakesink

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/1349>
gst/interlace/gstinterlace.c