diff --git a/omx/gstomxh263enc.c b/omx/gstomxh263enc.c index 2fea91e2b3..e3c1a9913b 100644 --- a/omx/gstomxh263enc.c +++ b/omx/gstomxh263enc.c @@ -197,13 +197,13 @@ gst_omx_h263_enc_set_format (GstOMXVideoEnc * enc, GstOMXPort * port, return TRUE; unsupported_profile: - gst_caps_unref (peercaps); GST_ERROR_OBJECT (self, "Unsupported profile %u", profile_id); + gst_caps_unref (peercaps); return FALSE; unsupported_level: - gst_caps_unref (peercaps); GST_ERROR_OBJECT (self, "Unsupported level %u", level_id); + gst_caps_unref (peercaps); return FALSE; } diff --git a/omx/gstomxh264enc.c b/omx/gstomxh264enc.c index 75f7897639..9adac04236 100644 --- a/omx/gstomxh264enc.c +++ b/omx/gstomxh264enc.c @@ -200,13 +200,13 @@ gst_omx_h264_enc_set_format (GstOMXVideoEnc * enc, GstOMXPort * port, return TRUE; unsupported_profile: - gst_caps_unref (peercaps); GST_ERROR_OBJECT (self, "Unsupported profile %s", profile_string); + gst_caps_unref (peercaps); return FALSE; unsupported_level: - gst_caps_unref (peercaps); GST_ERROR_OBJECT (self, "Unsupported level %s", level_string); + gst_caps_unref (peercaps); return FALSE; } diff --git a/omx/gstomxmpeg4videoenc.c b/omx/gstomxmpeg4videoenc.c index 14dfc349da..15b8ce724f 100644 --- a/omx/gstomxmpeg4videoenc.c +++ b/omx/gstomxmpeg4videoenc.c @@ -207,13 +207,13 @@ gst_omx_mpeg4_video_enc_set_format (GstOMXVideoEnc * enc, GstOMXPort * port, return TRUE; unsupported_profile: - gst_caps_unref (intersection); GST_ERROR_OBJECT (self, "Unsupported profile %s", profile_string); + gst_caps_unref (intersection); return FALSE; unsupported_level: - gst_caps_unref (intersection); GST_ERROR_OBJECT (self, "Unsupported level %s", level_string); + gst_caps_unref (intersection); return FALSE; }