summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorphintuka <phintuka>2007-01-24 04:29:04 +0000
committerphintuka <phintuka>2007-01-24 04:29:04 +0000
commit9c0c8c1ab9bd9f1be2832ae581de93d02ad42990 (patch)
tree86fbe0fb26702217a48b07f7da37924d5c02fe00
parent2947b0b07332522fe7ab6120535e57ac7bc021c3 (diff)
downloadxineliboutput-9c0c8c1ab9bd9f1be2832ae581de93d02ad42990.tar.gz
xineliboutput-9c0c8c1ab9bd9f1be2832ae581de93d02ad42990.tar.bz2
Define default free buffers larger than 1 when there are no clients
-rw-r--r--config.h4
-rw-r--r--tools/udp_pes_scheduler.c4
2 files changed, 5 insertions, 3 deletions
diff --git a/config.h b/config.h
index df1a907b..5874d1d7 100644
--- a/config.h
+++ b/config.h
@@ -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;