summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorphintuka <phintuka>2007-01-24 04:35:07 +0000
committerphintuka <phintuka>2007-01-24 04:35:07 +0000
commitbebd4615f7e21ea7581d12ba4771ccf23698e62e (patch)
tree56c76738a7885ff8122127bda278906d3c79aa2d
parent13d340929da13dd2f3ad49a92807e7a62b89b00b (diff)
downloadxineliboutput-bebd4615f7e21ea7581d12ba4771ccf23698e62e.tar.gz
xineliboutput-bebd4615f7e21ea7581d12ba4771ccf23698e62e.tar.bz2
min should be max ...
-rw-r--r--tools/udp_pes_scheduler.c4
1 files changed, 2 insertions, 2 deletions
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)