changeset 33241:a419ec5afc9e

Adjust possible cache size to values allowed by MPlayer.
author ib
date Mon, 25 Apr 2011 12:23:06 +0000
parents 1ff13ad1bc59
children 7bc1d3b00580
files gui/cfg.c gui/mplayer/gtk/opts.c
diffstat 2 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/gui/cfg.c	Mon Apr 25 09:48:11 2011 +0000
+++ b/gui/cfg.c	Mon Apr 25 12:23:06 2011 +0000
@@ -100,7 +100,7 @@
 
 static const m_option_t gui_opts[] = {
     { "cache",                       &gtkCacheOn,              CONF_TYPE_FLAG,        0,          0,     1,     NULL },
-    { "cache_size",                  &gtkCacheSize,            CONF_TYPE_INT,         CONF_RANGE, -1,    65535, NULL },
+    { "cache_size",                  &gtkCacheSize,            CONF_TYPE_INT,         CONF_RANGE, 32,  1048576, NULL },
 
     { "vf_lavc",                     &gtkVfLAVC,               CONF_TYPE_FLAG,        0,          0,     1,     NULL },
     { "vf_pp",                       &gtkVfPP,                 CONF_TYPE_FLAG,        0,          0,     1,     NULL },
--- a/gui/mplayer/gtk/opts.c	Mon Apr 25 09:48:11 2011 +0000
+++ b/gui/mplayer/gtk/opts.c	Mon Apr 25 12:23:06 2011 +0000
@@ -1259,7 +1259,7 @@
 
   AddLabel( MSGTR_PREFERENCES_CacheSize,hbox5 );
 
-  SBCacheadj=GTK_ADJUSTMENT( gtk_adjustment_new( 2048,4,65535,1,10,10 ) );
+  SBCacheadj=GTK_ADJUSTMENT( gtk_adjustment_new( 2048,32,1048576,1,10,10 ) );
   SBCache=gtk_spin_button_new( GTK_ADJUSTMENT( SBCacheadj ),1,0 );
   gtk_widget_show( SBCache );
   gtk_box_pack_start( GTK_BOX( hbox5 ),SBCache,TRUE,TRUE,0 );