From 8eae85edce64a5454036be7ffa5c526dc7e1f92e Mon Sep 17 00:00:00 2001 From: Claudio Ciccani Date: Mon, 18 Dec 2006 21:22:45 +0000 Subject: Added INPUT_CAP_NOCACHE: disable usage of internal input cache by default. CVS patchset: 8421 CVS date: 2006/12/18 21:22:45 --- src/input/input_plugin.h | 11 ++++++++++- src/xine-engine/xine.c | 5 ++++- 2 files changed, 14 insertions(+), 2 deletions(-) (limited to 'src') 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)) { -- cgit v1.2.3