# HG changeset patch # User mmu_man # Date 1040343924 0 # Node ID 7e1ff5580f279d62c37dc2f1ca074d3f8fedb27b # Parent 97e61383cb81d36dccad147dcb1862bddfff1b8a Hey, not everyone has usleep() ! (temporary fix, we should check for this in configure) diff -r 97e61383cb81 -r 7e1ff5580f27 img.c --- a/img.c Wed Dec 11 03:20:05 2002 +0000 +++ b/img.c Fri Dec 20 00:25:24 2002 +0000 @@ -17,6 +17,9 @@ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ #include +#ifdef __BEOS__ +# include +#endif #include "avformat.h" extern AVInputFormat pgm_iformat; @@ -207,7 +210,11 @@ pts = ((INT64)s->img_number * FRAME_RATE_BASE * 1000000) / (s1->streams[0]->codec.frame_rate); if (pts > nowus) +#ifdef __BEOS__ + snooze((bigtime_t)(pts - nowus)); +#else usleep(pts - nowus); +#endif } }