codecs: h264decoder: Calculate and set latency

Add gst_h264_decoder_set_latency(), which calculates and sets
latency on base decoder class, after new_sequence is called.

This assumes that in new_sequence() vmethod, callee negotiates
downstream caps.

Part-of: <!1531>
29 jobs for master in 27 minutes and 57 seconds (queued for 10 seconds)
Status Job ID Name Coverage
  Build Docker
passed #4543603
alpine amd64 manifest builder docker

00:00:29

passed #4543602
android docker

00:00:29

passed #4543601
cerbero fedora amd64 docker

00:00:29

passed #4543600
fedora amd64 docker

00:02:09

passed #4543604
gst-indent amd64 docker

00:00:13

 
  Preparation
passed #4543606
gst indent

00:00:13

passed #4543605
manifest

00:00:15

 
  Build
passed #4543615
gstreamer
build cerbero cross-android universal

00:08:37

passed #4543619
gst-ios-13.2
build cerbero cross-ios universal

00:21:26

passed #4543616
gstreamer
build cerbero cross win32

00:07:35

passed #4543617
gstreamer
build cerbero cross win64

00:04:37

passed #4543614
gstreamer
build cerbero fedora x86_64

00:04:02

passed #4543618
gst-macos-10.15
build cerbero macos x86_64

00:13:43

passed #4543610
build clang fedora x86_64

00:07:41

manual #4543613
1809 windows docker allowed to fail manual
build msys2
passed #4543607
build nodebug fedora x86_64

00:06:17

passed #4543608
build static fedora x86_64

00:06:55

passed #4543609
build static nodebug fedora x86_64

00:06:13

passed #4543611
1809 windows docker
build vs2017 amd64

00:08:06

passed #4543612
1809 windows docker
build vs2017 x86

00:07:11

 
  Test
passed #4543620
gstreamer
check fedora

00:05:50

passed #4543621
gstreamer
integration testsuites fedora 1/4

00:13:15

passed #4543622
gstreamer
integration testsuites fedora 2/4

00:15:51

passed #4543623
gstreamer
integration testsuites fedora 3/4

00:15:45

passed #4543624
gstreamer
integration testsuites fedora 4/4

00:16:41

passed #4543625
gstreamer
valgrind bad

00:05:47

 
  Integrate
passed #4543626
cross-android universal examples

00:06:57

passed #4543628
gst-ios-13.2
cross-ios universal examples

00:01:15

passed #4543627
documentation

00:11:40