diff --git a/sys/msdk/gstmsdkvpp.c b/sys/msdk/gstmsdkvpp.c index 37a40c77b0..93421b33aa 100644 --- a/sys/msdk/gstmsdkvpp.c +++ b/sys/msdk/gstmsdkvpp.c @@ -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) {