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:
parent
d6f6c51f3c
commit
98600942e4
@ -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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user