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 ff7f250..8e6c542 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;