summaryrefslogtreecommitdiffstats
path: root/stream/cache2.c
diff options
context:
space:
mode:
authoralbeu <albeu@b3059339-0415-0410-9bf9-f77b7e298cf2>2008-04-09 00:36:28 +0000
committeralbeu <albeu@b3059339-0415-0410-9bf9-f77b7e298cf2>2008-04-09 00:36:28 +0000
commitf481e7870b0fcb7fec1614efab4fc7baf380bf1c (patch)
treeb5cbdd1b187650efb3bea73bb69c862fdfae74ba /stream/cache2.c
parent64868a36cd8113336745f5baf336ae76553de9ab (diff)
downloadmpv-f481e7870b0fcb7fec1614efab4fc7baf380bf1c.tar.bz2
mpv-f481e7870b0fcb7fec1614efab4fc7baf380bf1c.tar.xz
Remove the need for code using stream to export an mp_input_check_interrupt()
function. It also removes the compile-time dependency on input. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@26358 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'stream/cache2.c')
-rw-r--r--stream/cache2.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/stream/cache2.c b/stream/cache2.c
index 7781ba1eb0..84a58272df 100644
--- a/stream/cache2.c
+++ b/stream/cache2.c
@@ -32,7 +32,6 @@ static void ThreadProc( void *s );
#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 @@ int stream_enable_cache(stream_t *stream,int size,int min,int seek_limit){
(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");