Fixed bug that would cause file playback to hang.

File playback would hang if the calculated wait time until next frame <
0.  This might happen when playing large files at high frame rates,
especially right after BBB boot up.