videodecoder: Drain decoder on DISCONT buffers
authorEdward Hervey <edward@centricular.com>
Sat, 4 Jun 2016 07:49:00 +0000 (09:49 +0200)
committerEdward Hervey <bilboed@bilboed.com>
Tue, 7 Jun 2016 07:49:56 +0000 (09:49 +0200)
commiteb1ebf226ff8c29ea976169f81135219f1ab412b
treef49741009d4bd18e384224b2451b255e0392c1b3
parentac56c1c3a78c72e209fdec3331954e93ceb7cd10
videodecoder: Drain decoder on DISCONT buffers

This ensures the decoder is properly drained out when receiving a
DISCONT buffer. The optimal way of doing this would have been to
receive a GAP event before hand but it is not always possible.

Fixes big delays with some decoders (ex gst-libav) that will not
drain out data when only decoding keyframes.

https://bugzilla.gnome.org/show_bug.cgi?id=767232
gst-libs/gst/video/gstvideodecoder.c