obs-qsv11: Protect context variable in clear_data

上级 8fdbf602
......@@ -118,12 +118,12 @@ static void clear_data(struct obs_qsv *obsqsv)
if (obsqsv->context) {
EnterCriticalSection(&g_QsvCs);
qsv_encoder_close(obsqsv->context);
obsqsv->context = NULL;
LeaveCriticalSection(&g_QsvCs);
// bfree(obsqsv->sei);
bfree(obsqsv->extra_data);
obsqsv->context = NULL;
// obsqsv->sei = NULL;
obsqsv->extra_data = NULL;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册