gst: Fix 'comparison of unsigned enum expression >= 0 is always true' compiler warning
authorSebastian Dröge <sebastian.droege@collabora.co.uk>
Tue, 6 Mar 2012 11:16:19 +0000 (12:16 +0100)
committerSebastian Dröge <sebastian.droege@collabora.co.uk>
Tue, 6 Mar 2012 11:16:19 +0000 (12:16 +0100)
gst/gst.c

index ff7f2507ca41a4241ce2a30d3c87ff0d7cc446f5..8e6c54280c44117e472da2b0e07b1c0733a5f656 100644 (file)
--- a/gst/gst.c
+++ b/gst/gst.c
@@ -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;