From bebd4615f7e21ea7581d12ba4771ccf23698e62e Mon Sep 17 00:00:00 2001 From: phintuka Date: Wed, 24 Jan 2007 04:35:07 +0000 Subject: min should be max ... --- tools/udp_pes_scheduler.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tools') diff --git a/tools/udp_pes_scheduler.c b/tools/udp_pes_scheduler.c index 26ae0936..efd3d930 100644 --- a/tools/udp_pes_scheduler.c +++ b/tools/udp_pes_scheduler.c @@ -4,7 +4,7 @@ * See the main source file 'xineliboutput.c' for copyright information and * how to reach the author. * - * $Id: udp_pes_scheduler.c,v 1.25 2007-01-24 04:29:04 phintuka Exp $ + * $Id: udp_pes_scheduler.c,v 1.26 2007-01-24 04:35:07 phintuka Exp $ * */ @@ -300,7 +300,7 @@ bool cUdpScheduler::Poll(int TimeoutMs, bool Master) m_Cond.TimedWait(m_Lock, 5); } - return min(limit - m_QueuePending, 0); + return max(limit - m_QueuePending, 0); } bool cUdpScheduler::Flush(int TimeoutMs) -- cgit v1.2.3