msdk: don't destroy an image twice
authorHaihao Xiang <haihao.xiang@intel.com>
Fri, 18 Jan 2019 07:14:59 +0000 (15:14 +0800)
committerVíctor Manuel Jáquez Leal <vjaquez@igalia.com>
Sun, 24 Feb 2019 17:59:43 +0000 (17:59 +0000)
commitfffb3f628d8451e83635505218d7d442562c3acb
treeb9043d7eb8e2d4d9a83b842a2dc530db3dfcff57
parent348a4b570d5c2d5352e8de9247f648077ee1632f
msdk: don't destroy an image twice

This gets rid of annoying message in the log, e.g. run the pipeline
below:

gst-launch-1.0 videotestsrc num-buffers=100 ! \
video/x-raw,format=NV12,width=352,height=288 ! msdkh264enc ! filesink \
location=test.h264

[LIBVA]:CRITICAL - DdiMedia_DestroyImage:4357: Invalid image
sys/msdk/gstmsdkallocator_libva.c