diff options
author | Hans-Christoph Steiner <eighthave@users.sourceforge.net> | 2007-05-09 04:56:07 +0000 |
---|---|---|
committer | Hans-Christoph Steiner <eighthave@users.sourceforge.net> | 2007-05-09 04:56:07 +0000 |
commit | 1cea503e08bd8103a59c64024a32523ef4dd5076 (patch) | |
tree | c52bd08d2d254b6fb8216a48b26bd68ce4140437 /modules/pdp_live~.c | |
parent | 33529a0531ab008ddd08af56024e7425a0bd1a86 (diff) |
#ifdef'ed out sched_setscheduler on Mac OS X since its not supported there
svn path=/trunk/externals/pidip/; revision=7636
Diffstat (limited to 'modules/pdp_live~.c')
-rw-r--r-- | modules/pdp_live~.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/modules/pdp_live~.c b/modules/pdp_live~.c index 1d4327d..1e8ca8f 100644 --- a/modules/pdp_live~.c +++ b/modules/pdp_live~.c @@ -535,11 +535,12 @@ static void *pdp_decode_stream_from_url(void *tdata) twait.tv_nsec = 10000000; // 10 ms schedprio.sched_priority = sched_get_priority_min(SCHED_FIFO) + x->x_priority; +#ifdef __gnu_linux__ if ( sched_setscheduler(0,SCHED_FIFO,&schedprio) == -1) { post("pdp_live~ : couldn't set priority for decoding thread."); } - +#endif if ( ! (x->x_avcontext->iformat->flags & AVFMT_NOHEADER ) ) { if (x->x_avcontext->iformat->read_header(x->x_avcontext, &x->x_avparameters) < 0) |