msdkdec: avoid releasing the input buffer when it is still in use
authorHaihao Xiang <haihao.xiang@intel.com>
Fri, 11 Jan 2019 08:18:11 +0000 (16:18 +0800)
committerVíctor Manuel Jáquez Leal <vjaquez@igalia.com>
Sat, 2 Feb 2019 16:32:02 +0000 (16:32 +0000)
commit74f297f31b98ebacdaaf523fcc0cbc48a8c307bc
tree3f7ab0a3e9417f3db316acf35b338cedfaaa22bc
parent572a283b4a7d8f3081e55e04ffdfbaec27a68f1e
msdkdec: avoid releasing the input buffer when it is still in use

The input buffer is released in gst_msdkdec_finish_task () when decoding
some special clips however this buffer is still in use, so ref the input
buffer before gst_msdkdec_finish_task () and unref it at the end of
gst_msdkdec_handle_frame ().

Fixes https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/issues/862
sys/msdk/gstmsdkdec.c