vaapidecode: don't reset decoder if codec type is the same.
authorGwenole Beauchesne <gwenole.beauchesne@intel.com>
Tue, 11 Sep 2012 15:03:33 +0000 (17:03 +0200)
committerGwenole Beauchesne <gwenole.beauchesne@intel.com>
Tue, 11 Sep 2012 15:08:47 +0000 (17:08 +0200)
commit5549dbc3c058e7072a480db6d4efb17c595c8580
treef50b0ec85add5125a50ca5e33a113cc7ffdbc86b
parent2b71db30598634dc17c3d45689a0f63528b3767c
vaapidecode: don't reset decoder if codec type is the same.

Reset, i.e. destroy then create, the decoder in _setcaps() handler only
if the underlying codec type actually changed. This makes it possible
to be more tolerant with certain MPEG-2 streams that get parsed to
form caps that are compatible with the previous state but minor changes
to "codec-data".
gst-libs/gst/vaapi/gstvaapidecoder.c
gst-libs/gst/vaapi/gstvaapidecoder.h
gst/vaapi/gstvaapidecode.c