summaryrefslogtreecommitdiffstats
path: root/libmpdemux/stream.h
diff options
context:
space:
mode:
authoralbeu <albeu@b3059339-0415-0410-9bf9-f77b7e298cf2>2002-02-23 21:22:55 +0000
committeralbeu <albeu@b3059339-0415-0410-9bf9-f77b7e298cf2>2002-02-23 21:22:55 +0000
commit9ada242c51e0d325d553d3ec875373f1126d7cb1 (patch)
tree1a88924eaf222faf9d4e5506cd827a6c4d520502 /libmpdemux/stream.h
parent5264cd378017ef8d42a4fe83d371272bdfaacaef (diff)
downloadmpv-9ada242c51e0d325d553d3ec875373f1126d7cb1.tar.bz2
mpv-9ada242c51e0d325d553d3ec875373f1126d7cb1.tar.xz
Make blocking call in libmpdemux interuptable (only with new input,
awnser to quit, pt_next, pt_up_step and alt_src_step) git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@4826 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libmpdemux/stream.h')
-rw-r--r--libmpdemux/stream.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/libmpdemux/stream.h b/libmpdemux/stream.h
index 0ef3d622cf..2d87336df4 100644
--- a/libmpdemux/stream.h
+++ b/libmpdemux/stream.h
@@ -46,12 +46,12 @@ typedef struct {
} stream_t;
#ifdef USE_STREAM_CACHE
-void stream_enable_cache(stream_t *stream,int size,int min,int prefill);
+int stream_enable_cache(stream_t *stream,int size,int min,int prefill);
#else
// no cache
#define cache_stream_fill_buffer(x) stream_fill_buffer(x)
#define cache_stream_seek_long(x,y) stream_seek_long(x,y)
-#define stream_enable_cache(x,y)
+#define stream_enable_cache(x,y) 1
#endif
int cache_stream_fill_buffer(stream_t *s);