summaryrefslogtreecommitdiffstats
path: root/Gui/interface.c
diff options
context:
space:
mode:
Diffstat (limited to 'Gui/interface.c')
-rw-r--r--Gui/interface.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/Gui/interface.c b/Gui/interface.c
index 166f70cc13..5bd3ec2ac3 100644
--- a/Gui/interface.c
+++ b/Gui/interface.c
@@ -77,6 +77,12 @@ char * gstrdup( char * str )
return strdup( str );
}
+char * gstrchr( char * str,int c )
+{
+ if ( !str ) return NULL;
+ return strchr( str,c );
+}
+
void gfree( void ** p )
{
if ( *p == NULL ) return;
@@ -541,6 +547,9 @@ int guiGetEvent( int type,char * arg )
if ( guiIntfStruct.StreamType == STREAMTYPE_STREAM ) btnSet( evSetMoviePosition,1 );
else btnSet( evSetMoviePosition,0 );
+
+ if ( gtkCacheOn ) stream_cache_size=gtkCacheSize;
+ else stream_cache_size=-1;
// -- audio
if ( audio_out )