From f17c8ac55b40c9c46d59ce06b0189321d07604e7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tim-Philipp=20M=C3=BCller?= Date: Fri, 22 Mar 2013 19:23:14 +0000 Subject: omx: fix compiler warnings when compiling with -DG_DISABLE_ASSERT As we do for releases. Fixes 'variable may be used uninitialized' warnings. --- omx/gstomxh264enc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'omx/gstomxh264enc.c') diff --git a/omx/gstomxh264enc.c b/omx/gstomxh264enc.c index 9adac04..d8446b6 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); -- cgit v1.2.1