summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--include/xine/input_plugin.h6
-rw-r--r--src/xine-engine/xine.c1
2 files changed, 7 insertions, 0 deletions
diff --git a/include/xine/input_plugin.h b/include/xine/input_plugin.h
index e9e17cbbc..95c5757c2 100644
--- a/include/xine/input_plugin.h
+++ b/include/xine/input_plugin.h
@@ -311,6 +311,12 @@ struct input_plugin_s {
#define INPUT_CAP_RIP_FORBIDDEN 0x00000100
+/*
+ * INPUT_CAP_NO_CACHE:
+ * do not use input cache plugin
+ */
+#define INPUT_CAP_NO_CACHE 0x00000200
+
#define INPUT_IS_SEEKABLE(input) (((input)->get_capabilities(input) & INPUT_CAP_SEEKABLE) != 0)
diff --git a/src/xine-engine/xine.c b/src/xine-engine/xine.c
index 49e4fd02d..4bf7bba00 100644
--- a/src/xine-engine/xine.c
+++ b/src/xine-engine/xine.c
@@ -1240,6 +1240,7 @@ static int open_internal (xine_stream_t *stream, const char *mrl) {
}
+ no_cache = no_cache || (stream->input_plugin->get_capabilities(stream->input_plugin) & INPUT_CAP_NO_CACHE);
if( !no_cache )
/* enable buffered input plugin (request optimizer) */
stream->input_plugin = _x_cache_plugin_get_instance(stream);