mirror of
https://github.com/mpv-player/mpv
synced 2024-12-26 09:02:38 +00:00
stream_check_interrupt should sleep even if no callback is set.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@31255 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
27d41fa5b3
commit
6b255e5083
@ -486,7 +486,10 @@ void stream_set_interrupt_callback(int (*cb)(int)) {
|
||||
}
|
||||
|
||||
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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user