Commit 17c5018b authored by Yeongjin Jeong's avatar Yeongjin Jeong

msdk: Fix abort when drm device won't open

If the drm device node fails to open or vaapi use fails, the msdkcontext
closes the session but does not initialize to NULL.
So, when the context is finalized, the session is double freed and abort occurs.
parent 5ac018e9
Pipeline #123501 passed with stages
in 32 minutes and 53 seconds
......@@ -200,6 +200,7 @@ gst_msdk_context_open (GstMsdkContext * context, gboolean hardware,
failed:
msdk_close_session (priv->session);
priv->session = NULL;
return FALSE;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment