diff options
author | phintuka <phintuka> | 2009-07-02 04:37:50 +0000 |
---|---|---|
committer | phintuka <phintuka> | 2009-07-02 04:37:50 +0000 |
commit | 7f0cd62718b74344e4f54f025cb2bc34ccca9436 (patch) | |
tree | 874620da9eb3ef98e8bf9ac24ec3ca1102d443a0 | |
parent | 76c75b28a51f33dae38d7842074eb6871e61539b (diff) | |
download | xineliboutput-7f0cd62718b74344e4f54f025cb2bc34ccca9436.tar.gz xineliboutput-7f0cd62718b74344e4f54f025cb2bc34ccca9436.tar.bz2 |
Fixed poll condition (broken in 1.42)
-rw-r--r-- | tools/udp_pes_scheduler.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/udp_pes_scheduler.c b/tools/udp_pes_scheduler.c index 129ac936..c697c5de 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.44 2009-07-01 09:24:13 phintuka Exp $ + * $Id: udp_pes_scheduler.c,v 1.45 2009-07-02 04:37:50 phintuka Exp $ * */ @@ -360,7 +360,7 @@ int cUdpScheduler::Poll(int TimeoutMs, bool Master) m_Cond.TimedWait(m_Lock, 5); } - return limit < m_QueuePending ? limit - m_QueuePending : 0; + return limit > m_QueuePending ? limit - m_QueuePending : 0; } bool cUdpScheduler::Flush(int TimeoutMs) |