mpeg2enc: fix interlace-mode detection

Previously, the code was always assuming progressive input,
fix this by looking at the caps.

Part-of: <gstreamer/gst-plugins-bad!2500>
44 jobs for !2500 with backport-mr-2455-into-1.18-mpeg2enc-interlace-mode in 42 minutes and 59 seconds (queued for 24 seconds)
detached
Status Name Job ID Coverage
  Build Docker
passed alpine amd64 manifest builder docker #13224822

00:00:29

passed android docker #13224821

00:00:30

passed cerbero fedora amd64 docker #13224820

00:00:30

passed fedora amd64 docker #13224819

00:00:30

passed gst-indent amd64 docker #13224823

00:00:16

 
  Preparation
passed gst indent #13224825

00:00:14

passed manifest #13224824
manual

00:00:37

 
  Build
passed build cerbero cross-android universal #13224834
gstreamer

00:06:15

passed build cerbero cross-ios universal #13224838
gst-ios-14.3

00:22:45

passed build cerbero cross win32 #13224835
gstreamer

00:05:03

passed build cerbero cross win64 #13224836
gstreamer

00:04:16

passed build cerbero fedora x86_64 #13253477
gstreamer

00:05:49

passed build cerbero macos x86_64 #13224837
gst-macos-11.1

00:10:10

passed build clang fedora x86_64 #13253474

00:10:09

manual build msys2 #13224832
docker windows 1809 allowed to fail manual
passed build nodebug fedora x86_64 #13253471

00:05:29

passed build static fedora x86_64 #13253472

00:08:06

passed build static nodebug fedora x86_64 #13253473

00:08:06

passed build vs2017 amd64 #13253475
docker windows 1809

00:10:24

passed build vs2017 x86 #13253476
docker windows 1809

00:10:35

failed build cerbero fedora x86_64 #13224833
gstreamer

00:02:41

failed build clang fedora x86_64 #13224829

00:01:39

failed build nodebug fedora x86_64 #13224826

00:01:40

failed build static fedora x86_64 #13224827

00:01:41

failed build static nodebug fedora x86_64 #13224828

00:01:37

failed build vs2017 amd64 #13224830
docker windows 1809

00:04:40

failed build vs2017 x86 #13224831
docker windows 1809

00:04:31

 
  Test
passed check fedora #13253478
gstreamer

00:08:53

passed integration testsuites fedora 1/4 #13253479
gstreamer

00:09:57

passed integration testsuites fedora 2/4 #13253480
gstreamer

00:09:12

passed integration testsuites fedora 3/4 #13253481
gstreamer

00:08:15

passed integration testsuites fedora 4/4 #13253482
gstreamer

00:08:32

passed valgrind bad #13253483
gstreamer

00:06:33

failed check fedora #13224839
gstreamer

00:02:02

failed integration testsuites fedora 1/4 #13224840
gstreamer

00:02:00

failed integration testsuites fedora 2/4 #13224841
gstreamer

00:01:58

failed integration testsuites fedora 3/4 #13224842
gstreamer

00:01:53

failed integration testsuites fedora 4/4 #13224843
gstreamer

00:01:58

failed valgrind bad #13224844
gstreamer

00:01:19

 
  Integrate
passed cross-android universal examples #13224845

00:06:43

passed cross-ios universal examples #13224847
gst-ios-14.3

00:04:16

passed documentation #13253484

00:14:24

failed documentation #13224909

00:02:05

failed documentation #13224846

00:04:48