mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-26 10:10:32 +00:00
gst: Fix 'comparison of unsigned enum expression >= 0 is always true' compiler warning
This commit is contained in:
parent
495aca4905
commit
c8cde669b7
1 changed files with 1 additions and 1 deletions
|
@ -913,7 +913,7 @@ parse_one_option (gint opt, const gchar * arg, GError ** err)
|
||||||
GstDebugLevel tmp = GST_LEVEL_NONE;
|
GstDebugLevel tmp = GST_LEVEL_NONE;
|
||||||
|
|
||||||
tmp = (GstDebugLevel) strtol (arg, NULL, 0);
|
tmp = (GstDebugLevel) strtol (arg, NULL, 0);
|
||||||
if (tmp >= 0 && tmp < GST_LEVEL_COUNT) {
|
if (((guint) tmp) < GST_LEVEL_COUNT) {
|
||||||
gst_debug_set_default_threshold (tmp);
|
gst_debug_set_default_threshold (tmp);
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Reference in a new issue