[MPlayer-cvslog] r34795 - in trunk/gui: cfg.c ui/gtk/preferences.c win32/preferences.c win32/wincfg.c

ib subversion at mplayerhq.hu
Sun Mar 4 16:37:30 CET 2012


Author: ib
Date: Sun Mar  4 16:37:30 2012
New Revision: 34795

Log:
Update GUI code after r34792.

Allow using a cache size of up to 4 TB.

Modified:
   trunk/gui/cfg.c
   trunk/gui/ui/gtk/preferences.c
   trunk/gui/win32/preferences.c
   trunk/gui/win32/wincfg.c

Modified: trunk/gui/cfg.c
==============================================================================
--- trunk/gui/cfg.c	Sun Mar  4 16:11:50 2012	(r34794)
+++ trunk/gui/cfg.c	Sun Mar  4 16:37:30 2012	(r34795)
@@ -105,7 +105,7 @@ static const char gui_urllist[]       = 
 
 static const m_option_t gui_opts[] = {
     { "cache",                       &gtkCacheOn,              CONF_TYPE_FLAG,        0,           0,     1,       NULL },
-    { "cache_size",                  &gtkCacheSize,            CONF_TYPE_INT,         CONF_RANGE,  32,    1048576, NULL },
+    { "cache_size",                  &gtkCacheSize,            CONF_TYPE_INT,         CONF_RANGE,  32,    0x7fffffff, NULL },
 
     { "vf_pp",                       &gtkVfPP,                 CONF_TYPE_FLAG,        0,           0,     1,       NULL },
 

Modified: trunk/gui/ui/gtk/preferences.c
==============================================================================
--- trunk/gui/ui/gtk/preferences.c	Sun Mar  4 16:11:50 2012	(r34794)
+++ trunk/gui/ui/gtk/preferences.c	Sun Mar  4 16:37:30 2012	(r34795)
@@ -1248,7 +1248,7 @@ GtkWidget * create_Preferences( void )
 
   AddLabel( MSGTR_PREFERENCES_CacheSize,hbox5 );
 
-  SBCacheadj=GTK_ADJUSTMENT( gtk_adjustment_new( gtkCacheSize,32,1048576,1,32,0 ) );
+  SBCacheadj=GTK_ADJUSTMENT( gtk_adjustment_new( gtkCacheSize,32,0x7fffffff,1,32,0 ) );
   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 );

Modified: trunk/gui/win32/preferences.c
==============================================================================
--- trunk/gui/win32/preferences.c	Sun Mar  4 16:11:50 2012	(r34794)
+++ trunk/gui/win32/preferences.c	Sun Mar  4 16:37:30 2012	(r34795)
@@ -323,7 +323,7 @@ static LRESULT CALLBACK PrefsWndProc(HWN
                                           ID_UPDOWN1,
                                           ((LPCREATESTRUCT) lParam) -> hInstance,
                                           (HWND)edit1, 0, 0, 0);
-            SendDlgItemMessage(hwnd, ID_UPDOWN1, UDM_SETRANGE32, (WPARAM)0, (LPARAM)65535);
+            SendDlgItemMessage(hwnd, ID_UPDOWN1, UDM_SETRANGE32, (WPARAM)32, (LPARAM)0x7fffffff);
 
             /* autosync */
             edit2 = CreateWindowEx(WS_EX_CLIENTEDGE, "edit", "autosync",

Modified: trunk/gui/win32/wincfg.c
==============================================================================
--- trunk/gui/win32/wincfg.c	Sun Mar  4 16:11:50 2012	(r34794)
+++ trunk/gui/win32/wincfg.c	Sun Mar  4 16:37:30 2012	(r34795)
@@ -74,7 +74,7 @@ static const m_option_t gui_opts[] =
     {   "delay", &audio_delay, CONF_TYPE_FLOAT, CONF_RANGE, -100.0, 100.0, NULL},
     {   "osd_level", &osd_level, CONF_TYPE_INT, CONF_RANGE, 0, 3, NULL },
     {   "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, 0x7fffffff, NULL },
     {   "autosync", &gtkAutoSyncOn, CONF_TYPE_FLAG, 0, 0, 1, NULL },
     {   "autosync_size", &gtkAutoSync, CONF_TYPE_INT, CONF_RANGE, 0, 10000, NULL },
     {   "gui_skin", &skinName, CONF_TYPE_STRING, 0, 0, 0, NULL },


More information about the MPlayer-cvslog mailing list