msdkenc: remove unneeded label

This commit is contained in:
Haihao Xiang 2019-09-16 10:52:53 +08:00 committed by Víctor Manuel Jáquez Leal
parent daa47b8dc1
commit 0b0d5afb53

View file

@ -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;