summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorphintuka <phintuka>2008-03-16 23:47:25 +0000
committerphintuka <phintuka>2008-03-16 23:47:25 +0000
commit870fc3e0abcc0db311a5711ebbcae1578ea92b48 (patch)
tree4c621215c03730e4ceee1b4f42713d266286136c
parentfa5322824d06b66b148f73ff8460fc2911e7fe65 (diff)
downloadxineliboutput-870fc3e0abcc0db311a5711ebbcae1578ea92b48.tar.gz
xineliboutput-870fc3e0abcc0db311a5711ebbcae1578ea92b48.tar.bz2
Defines for timeouts
-rw-r--r--frontend_svr.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/frontend_svr.c b/frontend_svr.c
index 9d87f689..a4355b2a 100644
--- a/frontend_svr.c
+++ b/frontend_svr.c
@@ -4,7 +4,7 @@
* See the main source file 'xineliboutput.c' for copyright information and
* how to reach the author.
*
- * $Id: frontend_svr.c,v 1.52 2008-03-16 23:45:09 phintuka Exp $
+ * $Id: frontend_svr.c,v 1.53 2008-03-16 23:47:25 phintuka Exp $
*
*/
@@ -50,6 +50,9 @@
#define MAX_OSD_TIMEOUTS (25*5) /* max. rate 25 updates/s -> at least 5 seconds */
#define LOG_OSD_BANDWIDTH (128*1024) /* log messages if OSD bandwidth > 1 Mbit/s */
+#define PLAYFILE_CTRL_TIMEOUT 300 /* ms */
+#define PLAYFILE_TIMEOUT 5000 /* ms */
+
typedef struct {
int Size;
uchar *Data;
@@ -745,9 +748,7 @@ int cXinelibServer::PlayFileCtrl(const char *Cmd)
int64_t t = cTimeMs::Now();
#endif
- int timeout = 300;
- if(bPlayfile)
- timeout = 5000;
+ int timeout = bPlayfile ? PLAYFILE_TIMEOUT : PLAYFILE_CTRL_TIMEOUT;
future.Wait(timeout);