diff --git a/omx/gstomxvideoenc.c b/omx/gstomxvideoenc.c index 141f9b74f7..865d7b5c6d 100644 --- a/omx/gstomxvideoenc.c +++ b/omx/gstomxvideoenc.c @@ -365,7 +365,6 @@ gst_omx_video_enc_open (GstOMXVideoEnc * self) if (err == OMX_ErrorUnsupportedIndex) { GST_WARNING_OBJECT (self, "Setting a bitrate not supported by the component"); - goto done; } else if (err != OMX_ErrorNone) { GST_ERROR_OBJECT (self, "Failed to set bitrate parameters: %s (0x%08x)", gst_omx_error_to_string (err), err); @@ -384,7 +383,6 @@ gst_omx_video_enc_open (GstOMXVideoEnc * self) if (err == OMX_ErrorUnsupportedIndex) { GST_WARNING_OBJECT (self, "Setting quantization parameters not supported by the component"); - goto done; } else if (err != OMX_ErrorNone) { GST_ERROR_OBJECT (self, "Failed to set quantization parameters: %s (0x%08x)", @@ -392,7 +390,6 @@ gst_omx_video_enc_open (GstOMXVideoEnc * self) return FALSE; } } -done: return TRUE; }