msdk: fix error handling in case of unsupported hardware
authorPeter Seiderer <ps.report@gmx.net>
Sat, 6 Apr 2019 19:09:03 +0000 (21:09 +0200)
committerVíctor Manuel Jáquez Leal <vjaquez@igalia.com>
Wed, 10 Apr 2019 15:54:31 +0000 (15:54 +0000)
Fix double gst_object_unref for GstMsdkContext.

https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/issues/945

sys/msdk/gstmsdkcontext.c

index 860722a..c7a7e04 100644 (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;
 }