Implement decoder reset on flush, rather than recreating
authorJan Schmidt <jan@centricular.com>
Wed, 5 Apr 2017 07:24:20 +0000 (17:24 +1000)
committerJan Schmidt <jan@centricular.com>
Wed, 12 Apr 2017 00:43:49 +0000 (10:43 +1000)
commita7a9b33ad9a8aa4366f33b2284638142ac5a9298
tree77b2d228464dfdb5c3e6bc88e3223412400cd212
parentbd2e304ea44ef9e6a09ad771fedcb200c22d8a86
Implement decoder reset on flush, rather than recreating

Clear decoders out on a flush but keep the same instance,
rather than completely recreating them. That avoids
unecessarily freeing and recreating surface pools
and contexts, which can be quite expensive

https://bugzilla.gnome.org/show_bug.cgi?id=781142
gst-libs/gst/vaapi/gstvaapidecoder.c
gst-libs/gst/vaapi/gstvaapidecoder.h
gst-libs/gst/vaapi/gstvaapidecoder_h264.c
gst-libs/gst/vaapi/gstvaapidecoder_h265.c
gst-libs/gst/vaapi/gstvaapidecoder_mpeg2.c
gst-libs/gst/vaapi/gstvaapidecoder_priv.h
gst-libs/gst/vaapi/gstvaapidecoder_vc1.c
gst/vaapi/gstvaapidecode.c