omx: fix compiler warnings when compiling with -DG_DISABLE_ASSERT

As we do for releases. Fixes 'variable may be used uninitialized'
warnings.
This commit is contained in:
Tim-Philipp Müller 2013-03-22 19:23:14 +00:00
parent ecb3c80a69
commit f17c8ac55b
3 changed files with 6 additions and 6 deletions

View file

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

View file

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

View file

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