video: Fix 'comparison of unsigned enum expression < 0 is always false' compiler...
authorEdward Hervey <edward.hervey@collabora.co.uk>
Fri, 30 Mar 2012 10:05:51 +0000 (12:05 +0200)
committerEdward Hervey <edward.hervey@collabora.co.uk>
Fri, 30 Mar 2012 10:05:51 +0000 (12:05 +0200)
gst-libs/gst/video/video.c

index 61004d7..de66de5 100644 (file)
@@ -675,7 +675,7 @@ static const gchar *interlace_mode[] = {
 static const gchar *
 gst_interlace_mode_to_string (GstVideoInterlaceMode mode)
 {
-  if (mode < 0 || mode >= G_N_ELEMENTS (interlace_mode))
+  if (((guint) mode) >= G_N_ELEMENTS (interlace_mode))
     return NULL;
 
   return interlace_mode[mode];