avviddec: After draining frames, flush the libav decoder

Makes sure that there's really nothing stale left in the decoder
after draining.

https://bugzilla.gnome.org/show_bug.cgi?id=734661
This commit is contained in:
Jan Schmidt 2014-08-08 20:04:20 +10:00
parent 1307b31e1c
commit 8c00a359d0

View file

@ -1451,6 +1451,7 @@ gst_ffmpegviddec_drain (GstFFMpegVidDec * ffmpegdec)
if (len < 0 || have_data == 0)
break;
} while (try++ < 10);
avcodec_flush_buffers (ffmpegdec->context);
}
}