msdk: use cached response for DMABuf when the frame size is same
authorHaihao Xiang <haihao.xiang@intel.com>
Thu, 9 Jan 2020 14:23:17 +0000 (22:23 +0800)
committerHaihao Xiang <haihao.xiang@intel.com>
Tue, 28 Jan 2020 03:46:04 +0000 (03:46 +0000)
commitac9c9d8efc4595df480bb549149356069542af41
treeae494f040d66f088e6a8da2717ac61564dbd8697
parente97ef8a5629f38a138b956261480eae077c4c5db
msdk: use cached response for DMABuf when the frame size is same

User is seeing corrupted display when running `videotestsrc !
video/x-raw,format=NV12,width=xxx,height=xxx ! msdkh265enc ! msdkh265dec
! glimagesink` with changed frame size, e.g. from 1920x1080 to 1920x240

The root cause is a same dmabuf fd is used for frames with
different size, which causes some unexpected result. This patch requires
cached response is used for frames with same size only for DMABuf, so a
dmabuf fd can't be used for frames with different size any more.
sys/msdk/gstmsdkcontext.c