msdkdec: Fix buffer allocation based on frame.
authorYan Wang <yan.wang@linux.intel.com>
Wed, 21 Aug 2019 08:44:39 +0000 (16:44 +0800)
committerVíctor Manuel Jáquez Leal <vjaquez@igalia.com>
Mon, 26 Aug 2019 13:59:16 +0000 (13:59 +0000)
commitf92b5614dbcf14b9ba6aae5f0888cd875edb1e51
tree01c3abf8b7a2b100fd4e068796fc33bbe65ea0dd
parente4c4f193f2ac77bd4a5ada1a916327ae646307ec
msdkdec: Fix buffer allocation based on frame.

gst_msdkdec_finish_task() may release all frames in
GstVideoDecoder object. In this case, allocate_output_buffer()
cannot get the oldest frame to allocate buffer.
So gst_msdkdec_handle_frame() should return GST_FLOW_OK for
letting gst_video_decoder_decode_frame() to send a new frame
for decoding.

Fixes #664.
Fixes #665.
sys/msdk/gstmsdkdec.c