basesrc: push EOS event before post error message when error

When gst_base_src_loop need to pause because of some errors, the
EOS event should be push to downstream before post error message
to pipeline. Posting error message make the whole pipeline change
state and the later EOS event(and some sticky unreceived events)
may cause unexpected results.

Fix: #419
22 jobs for gst_base_src_loop in 81 minutes and 9 seconds (queued for 18 minutes and 7 seconds)
latest
Status Job ID Name Coverage
  Preparation
passed #461995
gst indent

00:01:05

passed #461994
manifest

00:00:45

 
  Build
passed #462001
build cerbero android universal

00:11:35

passed #462002
build cerbero cross win32

00:11:10

passed #462003
build cerbero cross win64

00:07:58

passed #462000
build cerbero fedora x86_64

00:07:15

manual #462005
gst-ios-12.2 allowed to fail manual
build cerbero ios universal
passed #462004
gst-macos-10.14
build cerbero macos x86_64

00:06:40

passed #461996
build fedora x86_64

00:06:04

passed #461997
build nodebug fedora x86_64

00:04:43

passed #461998
build static fedora x86_64

00:13:16

passed #461999
build static nodebug fedora x86_64

00:09:29

 
  Test
passed #462006
check fedora

00:03:58

passed #462007
integration testsuites fedora

00:11:16

passed #462012
valgrind bad

00:08:54

passed #462009
valgrind base

00:09:43

passed #462008
valgrind core

00:26:35

passed #462013
valgrind ges

00:05:35

passed #462010
valgrind good

00:30:58

passed #462011
valgrind ugly

00:01:33

 
  Integrate
passed #462014
android universal examples

00:05:15

passed #462015
documentation

00:04:40