gst: Fix 'comparison of unsigned enum expression >= 0 is always true' compiler warning

This commit is contained in:
Sebastian Dröge 2012-03-06 12:16:19 +01:00
parent 495aca4905
commit c8cde669b7

View file

@ -913,7 +913,7 @@ parse_one_option (gint opt, const gchar * arg, GError ** err)
GstDebugLevel tmp = GST_LEVEL_NONE;
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);
}
break;