Stefan Lucke wrote: ...
< while (paused) usleep(1000); // block ---while (paused) usleep(2100); // blockIndex: mpeg2decoder.c =================================================================== RCS file: /cvsroot/softdevice/softdevice/mpeg2decoder.c,v retrieving revision 1.1.1.1 diff -r1.1.1.1 mpeg2decoder.c 266c266 < usleep(1000); ---usleep(2100);376,377c376,377 < while (delay > 0) { < usleep(1000); ---while (delay > 4) { usleep(2100);
IIRC, the kernel timer has a resolution of 10 ms on Linux/i386, so anything between usleep(1) and usleep(10000) should be the same, right? In particular, usleep(1000) and usleep(2100) should have the same effect. Carsten.