msdk: fix error handling in case of unsupported hardware
Fix double gst_object_unref for GstMsdkContext. https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/issues/945
This commit is contained in:
parent
88bee1a322
commit
9b19968a66
@ -200,7 +200,6 @@ gst_msdk_context_open (GstMsdkContext * context, gboolean hardware,
|
|||||||
|
|
||||||
failed:
|
failed:
|
||||||
msdk_close_session (priv->session);
|
msdk_close_session (priv->session);
|
||||||
gst_object_unref (context);
|
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user