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:
Peter Seiderer 2019-04-06 21:09:03 +02:00 committed by Víctor Manuel Jáquez Leal
parent 88bee1a322
commit 9b19968a66

View file

@ -200,7 +200,6 @@ gst_msdk_context_open (GstMsdkContext * context, gboolean hardware,
failed:
msdk_close_session (priv->session);
gst_object_unref (context);
return FALSE;
}