Revision 47860766 libavdevice/fbdev.c

View differences:

libavdevice/fbdev.c
204 204
            return AVERROR(EAGAIN);
205 205
        ts.tv_sec  =  delay / 1000000;
206 206
        ts.tv_nsec = (delay % 1000000) * 1000;
207
        while (nanosleep(&ts, &ts) == EINTR);
207
        while (nanosleep(&ts, &ts) < 0 && errno == EINTR);
208 208
    }
209 209

  
210 210
    if ((ret = av_new_packet(pkt, fbdev->frame_size)) < 0)

Also available in: Unified diff