mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-23 10:11:08 +00:00
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
1 changed files with 4 additions and 0 deletions
|
@ -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…
Reference in a new issue