aboutsummaryrefslogtreecommitdiff
path: root/modules/pdp_theorin~.c
diff options
context:
space:
mode:
Diffstat (limited to 'modules/pdp_theorin~.c')
-rw-r--r--modules/pdp_theorin~.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/modules/pdp_theorin~.c b/modules/pdp_theorin~.c
index 4ebd4d3..b2a0c5a 100644
--- a/modules/pdp_theorin~.c
+++ b/modules/pdp_theorin~.c
@@ -404,11 +404,12 @@ static void *pdp_decode_file(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_theorin~ : couldn't set priority for decoding thread.");
}
-
+#endif
while ( x->x_decodechild )
{
if ( ( x->x_reading ) && ( ( x->x_autoplay ) || ( x->x_nextimage == 1 ) ) )