msdkvpp: clear the parameters after closing the session

Otherwise the stale values are used for the new process.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/1159>
This commit is contained in:
Haihao Xiang 2020-04-02 10:44:31 +08:00
parent d6f6c51f3c
commit 98600942e4

View file

@ -1028,6 +1028,10 @@ gst_msdkvpp_initialize (GstMsdkVPP * thiz)
}
MFXVideoVPP_Close (session);
memset (&thiz->param, 0, sizeof (thiz->param));
memset (&thiz->extra_params, 0, sizeof (thiz->extra_params));
thiz->num_extra_params = 0;
}
if (thiz->use_video_memory) {