msdkdec: fix for resolution change
authorHaihao Xiang <haihao.xiang@intel.com>
Wed, 27 Feb 2019 00:07:29 +0000 (08:07 +0800)
committerVíctor Manuel Jáquez Leal <vjaquez@igalia.com>
Thu, 28 Feb 2019 11:08:24 +0000 (11:08 +0000)
commit18d410b81a5d18703c19898dd5d8ec132c6bbb5a
tree3994c85d7cfe699eb94255175926c49bae9f02b8
parent03fcdedd66d82352a87002d402701b59f6e56b1f
msdkdec: fix for resolution change

Returning MFX_ERR_INCOMPATIBLE_VIDEO_PARAM from
MFXVideoDECODE_DecodeFrameAsync means the allocated mfx surface is not
suitable for the current frame, we need a new mfx surface and try
MFXVideoDECODE_DecodeFrameAsync again.
sys/msdk/gstmsdkdec.c