videodecoder: fix output state interlace-mode
authorGuillaume Desmottes <guillaume.desmottes@collabora.com>
Mon, 5 Oct 2020 10:07:22 +0000 (12:07 +0200)
committerGuillaume Desmottes <guillaume.desmottes@collabora.com>
Fri, 9 Oct 2020 09:04:30 +0000 (11:04 +0200)
commita3a2992bc85e8c7ffd739c51f61df60cdd8070a3
treefdc9781d715b0d771fe75d1d8832eb7e83d28c97
parenta19a27a4ca6c39491e2e7ed1256ff7042050e171
videodecoder: fix output state interlace-mode

When user is passing the actual interlace-mode when calling
gst_video_decoder_set_interlaced_output_state() it should not be
overidden by the input interlace-mode.

Needed to fix #825 as we want to keep interlace-mode=interleaved from
parsers and have the OMX decoder producing interlace-mode=alternate.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-base/-/merge_requests/852>
gst-libs/gst/video/gstvideodecoder.c