Mercurial > mplayer.hg
changeset 31194:b2bb87b92146
stream_check_interrupt should sleep even if no callback is set.
author | reimar |
---|---|
date | Fri, 28 May 2010 18:49:02 +0000 |
parents | f41fda4fe85f |
children | 746aef293ae9 |
files | stream/stream.c |
diffstat | 1 files changed, 4 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/stream/stream.c Fri May 28 18:47:03 2010 +0000 +++ b/stream/stream.c Fri May 28 18:49:02 2010 +0000 @@ -486,7 +486,10 @@ } int stream_check_interrupt(int time) { - if(!stream_check_interrupt_cb) return 0; + if(!stream_check_interrupt_cb) { + usec_sleep(time * 1000); + return 0; + } return stream_check_interrupt_cb(time); }