Mercurial > mplayer.hg
diff stream/cache2.c @ 26326:5bfc1d8bece9
Remove the need for code using stream to export an mp_input_check_interrupt()
function. It also removes the compile-time dependency on input.
| author | albeu |
|---|---|
| date | Wed, 09 Apr 2008 00:36:28 +0000 |
| parents | d8128689c031 |
| children | 77003eb2d9a8 |
line wrap: on
line diff
--- a/stream/cache2.c Wed Apr 09 00:32:35 2008 +0000 +++ b/stream/cache2.c Wed Apr 09 00:36:28 2008 +0000 @@ -32,7 +32,6 @@ #include "help_mp.h" #include "stream.h" -#include "input/input.h" extern int use_gui; int stream_fill_buffer(stream_t *s); @@ -307,7 +306,7 @@ (int64_t)s->max_filepos-s->read_filepos ); if(s->eof) break; // file is smaller than prefill size - if(mp_input_check_interrupt(PREFILL_SLEEP_TIME)) + if(stream_check_interrupt(PREFILL_SLEEP_TIME)) return 0; } mp_msg(MSGT_CACHE,MSGL_STATUS,"\n");
