summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorClaudio Ciccani <klan@users.sourceforge.net>2006-12-18 21:22:45 +0000
committerClaudio Ciccani <klan@users.sourceforge.net>2006-12-18 21:22:45 +0000
commit8eae85edce64a5454036be7ffa5c526dc7e1f92e (patch)
treedda3387bab23dab6eb5bb1ec3c0265be1d85831e /src
parente5832a7524780c1604ac43047705fee6688d6fde (diff)
downloadxine-lib-8eae85edce64a5454036be7ffa5c526dc7e1f92e.tar.gz
xine-lib-8eae85edce64a5454036be7ffa5c526dc7e1f92e.tar.bz2
Added INPUT_CAP_NOCACHE: disable usage of internal input cache by default.
CVS patchset: 8421 CVS date: 2006/12/18 21:22:45
Diffstat (limited to 'src')
-rw-r--r--src/input/input_plugin.h11
-rw-r--r--src/xine-engine/xine.c5
2 files changed, 14 insertions, 2 deletions
diff --git a/src/input/input_plugin.h b/src/input/input_plugin.h
index 2e9f0dca6..146207e76 100644
--- a/src/input/input_plugin.h
+++ b/src/input/input_plugin.h
@@ -17,7 +17,7 @@
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
*
- * $Id: input_plugin.h,v 1.60 2005/10/14 21:02:16 miguelfreitas Exp $
+ * $Id: input_plugin.h,v 1.61 2006/12/18 21:22:45 klan Exp $
*/
#ifndef HAVE_INPUT_PLUGIN_H
@@ -297,6 +297,15 @@ struct input_plugin_s {
#define INPUT_CAP_RIP_FORBIDDEN 0x00000100
+/*
+ * INPUT_CAP_NOCACHE:
+ * means that buffered input must not be used.
+ * (i.e. disable input_cache internal plugin)
+ */
+
+#define INPUT_CAP_NOCACHE 0x00000200
+
+
#define INPUT_IS_SEEKABLE(input) (((input)->get_capabilities(input) & INPUT_CAP_SEEKABLE) != 0)
#define INPUT_OPTIONAL_UNSUPPORTED 0
diff --git a/src/xine-engine/xine.c b/src/xine-engine/xine.c
index 2440e2d95..6149675f7 100644
--- a/src/xine-engine/xine.c
+++ b/src/xine-engine/xine.c
@@ -17,7 +17,7 @@
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
*
- * $Id: xine.c,v 1.336 2006/12/13 18:30:30 dsalt Exp $
+ * $Id: xine.c,v 1.337 2006/12/18 21:22:45 klan Exp $
*/
/*
@@ -769,6 +769,9 @@ static int open_internal (xine_stream_t *stream, const char *mrl) {
return 0;
}
+ if (stream->input_plugin->get_capabilities(stream->input_plugin) & INPUT_CAP_NOCACHE)
+ no_cache = 1;
+
if (*stream_setup) {
while (stream_setup && *stream_setup && *(++stream_setup)) {