diff options
-rw-r--r-- | config.h | 4 | ||||
-rw-r--r-- | tools/udp_pes_scheduler.c | 4 |
2 files changed, 5 insertions, 3 deletions
@@ -4,7 +4,7 @@ * See the main source file 'xineliboutput.c' for copyright information and * how to reach the author. * - * $Id: config.h,v 1.15 2007-01-19 14:21:48 phintuka Exp $ + * $Id: config.h,v 1.16 2007-01-24 04:29:03 phintuka Exp $ * */ @@ -133,6 +133,8 @@ #define READONLY_OPTION(opt) \ (xc.IsOptionReadOnly(xc.opt)) +#define DEFAULT_POLL_SIZE 16 + typedef enum { ShowMenu = 0, ShowEq = 1, diff --git a/tools/udp_pes_scheduler.c b/tools/udp_pes_scheduler.c index c43d4736..26ae0936 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.24 2007-01-24 01:04:08 phintuka Exp $ + * $Id: udp_pes_scheduler.c,v 1.25 2007-01-24 04:29:04 phintuka Exp $ * */ @@ -285,7 +285,7 @@ bool cUdpScheduler::Poll(int TimeoutMs, bool Master) if(m_Handles[0] < 0) { // no clients, so we can eat all data we are given ... - return 1; + return DEFAULT_POLL_SIZE; } int limit = m_Master ? MAX_QUEUE_SIZE : MAX_LIVE_QUEUE_SIZE; |