video: Fix 'comparison of unsigned enum expression < 0 is always false' compiler warning

This commit is contained in:
Edward Hervey 2012-03-30 12:05:51 +02:00
parent 05a778b1c4
commit 32c617c867

View 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];