avauddec: Drain decoder on decoding failure

... and call finish_frame() so that baseclass can reset internal
status. Otherwise baseclass will keep holding the status for
decoding failed frame which will result in outputting buffer with
wrong timestamp.

Part-of: <!112>
29 jobs for master in 31 seconds (queued for 4 seconds)
Status Job ID Name Coverage
  Build Docker
passed #6425697
alpine amd64 manifest builder docker

00:00:20

passed #6425696
android docker

00:00:21

passed #6425695
cerbero fedora amd64 docker

00:00:20

passed #6425694
fedora amd64 docker

00:00:20

passed #6425698
gst-indent amd64 docker

00:00:13

 
  Preparation
passed #6425700
gst indent

00:00:09

manual #6425699
manual
manifest
 
  Build
created #6425709
gstreamer
build cerbero cross-android universal
created #6425713
gst-ios-13.2
build cerbero cross-ios universal
created #6425710
gstreamer
build cerbero cross win32
created #6425711
gstreamer
build cerbero cross win64
created #6425708
gstreamer
build cerbero fedora x86_64
created #6425712
gst-macos-10.15
build cerbero macos x86_64
created #6425714
docker windows gstreamer-windows 1809
build cerbero msvc x86_64
created #6425704
build clang fedora x86_64
created #6425707
docker windows 1809 allowed to fail manual
build msys2
created #6425701
build nodebug fedora x86_64
created #6425702
build static fedora x86_64
created #6425703
build static nodebug fedora x86_64
created #6425705
docker windows 1809
build vs2017 amd64
created #6425706
docker windows 1809
build vs2017 x86
 
  Test
created #6425715
gstreamer
check fedora
created #6425716
gstreamer
integration testsuites fedora 1/4
created #6425717
gstreamer
integration testsuites fedora 2/4
created #6425718
gstreamer
integration testsuites fedora 3/4
created #6425719
gstreamer
integration testsuites fedora 4/4
 
  Integrate
created #6425720
cross-android universal examples
created #6425722
gst-ios-13.2
cross-ios universal examples
created #6425721
documentation