From 0b0d5afb538f07f1ae74317531d9f3d1018c6a6a Mon Sep 17 00:00:00 2001 From: Haihao Xiang Date: Mon, 16 Sep 2019 10:52:53 +0800 Subject: [PATCH] msdkenc: remove unneeded label --- sys/msdk/gstmsdkenc.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/sys/msdk/gstmsdkenc.c b/sys/msdk/gstmsdkenc.c index 1b926b8c64..df600e5a64 100644 --- a/sys/msdk/gstmsdkenc.c +++ b/sys/msdk/gstmsdkenc.c @@ -330,7 +330,7 @@ gst_msdkenc_init_encoder (GstMsdkEnc * thiz) if (status < MFX_ERR_NONE) { GST_ERROR_OBJECT (thiz, "Video VPP Query failed (%s)", msdk_status_to_string (status)); - goto no_vpp; + goto failed; } else if (status > MFX_ERR_NONE) { GST_WARNING_OBJECT (thiz, "Video VPP Query returned: %s", msdk_status_to_string (status)); @@ -340,7 +340,7 @@ gst_msdkenc_init_encoder (GstMsdkEnc * thiz) if (status < MFX_ERR_NONE) { GST_ERROR_OBJECT (thiz, "VPP Query IO surfaces failed (%s)", msdk_status_to_string (status)); - goto no_vpp; + goto failed; } else if (status > MFX_ERR_NONE) { GST_WARNING_OBJECT (thiz, "VPP Query IO surfaces returned: %s", msdk_status_to_string (status)); @@ -532,7 +532,6 @@ gst_msdkenc_init_encoder (GstMsdkEnc * thiz) no_vpp_free_resource: if (thiz->use_video_memory) gst_msdk_frame_free (thiz->context, &thiz->vpp_alloc_resp); -no_vpp: failed: GST_OBJECT_UNLOCK (thiz); return FALSE;