[MPlayer-cvslog] r33328 - in trunk/gui: cfg.c mplayer/gtk/opts.c

ib subversion at mplayerhq.hu
Mon Apr 25 14:23:06 CEST 2011


Author: ib
Date: Mon Apr 25 14:23:06 2011
New Revision: 33328

Log:
Adjust possible cache size to values allowed by MPlayer.

Modified:
   trunk/gui/cfg.c
   trunk/gui/mplayer/gtk/opts.c

Modified: trunk/gui/cfg.c
==============================================================================
--- trunk/gui/cfg.c	Mon Apr 25 11:48:11 2011	(r33327)
+++ trunk/gui/cfg.c	Mon Apr 25 14:23:06 2011	(r33328)
@@ -100,7 +100,7 @@ static m_config_t *gui_conf;
 
 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 },

Modified: trunk/gui/mplayer/gtk/opts.c
==============================================================================
--- trunk/gui/mplayer/gtk/opts.c	Mon Apr 25 11:48:11 2011	(r33327)
+++ trunk/gui/mplayer/gtk/opts.c	Mon Apr 25 14:23:06 2011	(r33328)
@@ -1259,7 +1259,7 @@ GtkWidget * create_Preferences( void )
 
   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 );


More information about the MPlayer-cvslog mailing list