diff options
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) |