mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-24 01:00:37 +00:00
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:
parent
ecb3c80a69
commit
f17c8ac55b
3 changed files with 6 additions and 6 deletions
|
@ -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,
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue