Added a Sleep.h header, which defines an OS specific sleep metho.

This commit is contained in:
Jonathan Thomas
2013-06-06 12:12:08 -05:00
parent 5ce6add42f
commit 6171abfe1a
8 changed files with 18 additions and 3 deletions

View File

@@ -382,7 +382,7 @@ tr1::shared_ptr<Frame> FFmpegReader::ReadStream(int requested_frame)
// Wait if too many frames are being processed
while (processing_video_frames.size() + processing_audio_frames.size() >= minimum_packets)
usleep(1000 * 1);
Sleep(1);
// Get the next packet (if any)
if (packet_error < 0)