From acf141e0889a506bf385b68aa24463f8520ed9a1 Mon Sep 17 00:00:00 2001 From: phintuka Date: Fri, 19 Dec 2008 16:25:11 +0000 Subject: do not check (unsigned) < 0 --- xine/osd_manager.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/xine/osd_manager.c b/xine/osd_manager.c index 238bc6cb..3ce2e4f2 100644 --- a/xine/osd_manager.c +++ b/xine/osd_manager.c @@ -4,7 +4,7 @@ * See the main source file 'xineliboutput.c' for copyright information and * how to reach the author. * - * $Id: osd_manager.c,v 1.6 2008-12-18 14:05:05 phintuka Exp $ + * $Id: osd_manager.c,v 1.7 2008-12-19 16:25:11 phintuka Exp $ * */ @@ -572,7 +572,7 @@ static int exec_osd_command(osd_manager_t *this_gen, LOGMSG("exec_osd_command: Stream not initialized !"); return CONTROL_DISCONNECTED; } - if (cmd->wnd < 0 || cmd->wnd >= MAX_OSD_OBJECT) { + if (cmd->wnd >= MAX_OSD_OBJECT) { LOGMSG("exec_osd_command: OSD window handle %d out of range !", cmd->wnd); return CONTROL_PARAM_ERROR; } -- cgit v1.2.3