diff --git a/omx/gstomxh263enc.c b/omx/gstomxh263enc.c index e3c1a9913b..53080faf15 100644 --- a/omx/gstomxh263enc.c +++ b/omx/gstomxh263enc.c @@ -261,7 +261,7 @@ gst_omx_h263_enc_get_caps (GstOMXVideoEnc * enc, GstOMXPort * port, break; default: g_assert_not_reached (); - break; + return NULL; } switch (param.eLevel) { @@ -288,7 +288,7 @@ gst_omx_h263_enc_get_caps (GstOMXVideoEnc * enc, GstOMXPort * port, break; default: g_assert_not_reached (); - break; + return NULL; } gst_caps_set_simple (caps, diff --git a/omx/gstomxh264enc.c b/omx/gstomxh264enc.c index 9adac04236..d8446b6334 100644 --- a/omx/gstomxh264enc.c +++ b/omx/gstomxh264enc.c @@ -258,7 +258,7 @@ gst_omx_h264_enc_get_caps (GstOMXVideoEnc * enc, GstOMXPort * port, break; default: g_assert_not_reached (); - break; + return NULL; } switch (param.eLevel) { @@ -312,7 +312,7 @@ gst_omx_h264_enc_get_caps (GstOMXVideoEnc * enc, GstOMXPort * port, break; default: g_assert_not_reached (); - break; + return NULL; } gst_caps_set_simple (caps, "profile", G_TYPE_STRING, profile, "level", G_TYPE_STRING, level, NULL); diff --git a/omx/gstomxmpeg4videoenc.c b/omx/gstomxmpeg4videoenc.c index 15b8ce724f..a5d9371c28 100644 --- a/omx/gstomxmpeg4videoenc.c +++ b/omx/gstomxmpeg4videoenc.c @@ -294,7 +294,7 @@ gst_omx_mpeg4_video_enc_get_caps (GstOMXVideoEnc * enc, GstOMXPort * port, break; default: g_assert_not_reached (); - break; + return NULL; } switch (param.eLevel) { @@ -324,7 +324,7 @@ gst_omx_mpeg4_video_enc_get_caps (GstOMXVideoEnc * enc, GstOMXPort * port, break; default: g_assert_not_reached (); - break; + return NULL; } gst_caps_set_simple (caps,