[PD-cvs] externals/pidip/modules pdp_icedthe~.c, 1.4, 1.5 pdp_live~.c, 1.7, 1.8 pdp_mp4player~.cpp, 1.2, 1.3 pdp_theorin~.c, 1.3, 1.4

Hans-Christoph Steiner eighthave at users.sourceforge.net
Wed May 9 06:56:09 CEST 2007


Update of /cvsroot/pure-data/externals/pidip/modules
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv6879

Modified Files:
	pdp_icedthe~.c pdp_live~.c pdp_mp4player~.cpp pdp_theorin~.c 
Log Message:
#ifdef'ed out sched_setscheduler on Mac OS X since its not supported there

Index: pdp_live~.c
===================================================================
RCS file: /cvsroot/pure-data/externals/pidip/modules/pdp_live~.c,v
retrieving revision 1.7
retrieving revision 1.8
diff -C2 -d -r1.7 -r1.8
*** pdp_live~.c	11 Dec 2006 23:14:27 -0000	1.7
--- pdp_live~.c	9 May 2007 04:56:07 -0000	1.8
***************
*** 536,544 ****
   
      schedprio.sched_priority = sched_get_priority_min(SCHED_FIFO) + x->x_priority;
      if ( sched_setscheduler(0,SCHED_FIFO,&schedprio) == -1)
      {
          post("pdp_live~ : couldn't set priority for decoding thread.");
      }
! 
      if ( ! (x->x_avcontext->iformat->flags & AVFMT_NOHEADER ) )
      {
--- 536,545 ----
   
      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 ) )
      {

Index: pdp_mp4player~.cpp
===================================================================
RCS file: /cvsroot/pure-data/externals/pidip/modules/pdp_mp4player~.cpp,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** pdp_mp4player~.cpp	18 May 2004 00:44:09 -0000	1.2
--- pdp_mp4player~.cpp	9 May 2007 04:56:07 -0000	1.3
***************
*** 128,135 ****
--- 128,137 ----
  
      schedprio.sched_priority = 0;
+ #ifdef __gnu_linux__
      if ( sched_setscheduler(0, SCHED_OTHER, &schedprio) == -1)
      {
         post("pdp_mp4player~ : couldn't set scheduler for decoding thread.\n");
      }
+ #endif
      if ( setpriority( PRIO_PROCESS, 0, x->x_priority ) < 0 )
      {

Index: pdp_icedthe~.c
===================================================================
RCS file: /cvsroot/pure-data/externals/pidip/modules/pdp_icedthe~.c,v
retrieving revision 1.4
retrieving revision 1.5
diff -C2 -d -r1.4 -r1.5
*** pdp_icedthe~.c	14 Dec 2006 06:03:30 -0000	1.4
--- pdp_icedthe~.c	9 May 2007 04:56:07 -0000	1.5
***************
*** 489,496 ****
--- 489,498 ----
   
      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_icedthe~ : couldn't set priority for decoding thread.");
      }
+ #endif
  
      while ( x->x_decodechild )

Index: pdp_theorin~.c
===================================================================
RCS file: /cvsroot/pure-data/externals/pidip/modules/pdp_theorin~.c,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** pdp_theorin~.c	11 Dec 2006 23:14:28 -0000	1.3
--- pdp_theorin~.c	9 May 2007 04:56:07 -0000	1.4
***************
*** 405,413 ****
   
      schedprio.sched_priority = sched_get_priority_min(SCHED_FIFO) + x->x_priority;
      if ( sched_setscheduler(0, SCHED_FIFO, &schedprio) == -1)
      {
          post("pdp_theorin~ : couldn't set priority for decoding thread.");
      }
! 
      while ( x->x_decodechild )
      {
--- 405,414 ----
   
      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 )
      {





More information about the Pd-cvs mailing list