video: Fix 'comparison of unsigned enum expression < 0 is always false' compiler warning
This commit is contained in:
parent
05a778b1c4
commit
32c617c867
@ -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];
|
||||
|
Loading…
x
Reference in New Issue
Block a user