videodecoder: Don't always drain on gaps/discont
authorNicolas Dufresne <nicolas.dufresne@collabora.com>
Mon, 9 Jul 2018 18:03:04 +0000 (14:03 -0400)
committerNicolas Dufresne <nicolas.dufresne@collabora.com>
Thu, 12 Jul 2018 19:25:51 +0000 (15:25 -0400)
commit62cb08404b9bd055c45cc1d5b71141e927ad748a
tree003ea134e4126671752a5fe7887d66205e8184cb
parentfe8f7dac8345b87b6db434b2c1d47af9473944ee
videodecoder: Don't always drain on gaps/discont

V4L2 and OMX decoder don't support draining and keeping reference
frames. As a side effect, these decoder just stops working on
gaps/discont. When this drain was introduced, the commit stated that
this was for TRICKMODE_KEY_UNITS, so only drain if running in this mode.

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