[Mplayer-cvslog] CVS: main/Gui/mplayer/gtk opts.c,1.32,1.33

Zoltan Ponekker pontscho at mplayerhq.hu
Mon Nov 25 17:23:02 CET 2002


Update of /cvsroot/mplayer/main/Gui/mplayer/gtk
In directory mail:/var/tmp.root/cvs-serv29680/mplayer/gtk

Modified Files:
	opts.c 
Log Message:
fix(?) cache

Index: opts.c
===================================================================
RCS file: /cvsroot/mplayer/main/Gui/mplayer/gtk/opts.c,v
retrieving revision 1.32
retrieving revision 1.33
diff -u -r1.32 -r1.33
--- opts.c	13 Nov 2002 14:12:21 -0000	1.32
+++ opts.c	25 Nov 2002 16:22:58 -0000	1.33
@@ -311,10 +311,10 @@
  }
 
  gtk_toggle_button_set_active( GTK_TOGGLE_BUTTON( CBCache ),0 );
- if ( stream_cache_size )
+ if ( stream_cache_size > 0 )
   {
    gtk_toggle_button_set_active( GTK_TOGGLE_BUTTON( CBCache ),1 );
-   gtk_adjustment_set_value( SBCacheadj,stream_cache_size );
+   gtk_adjustment_set_value( SBCacheadj,(float)stream_cache_size );
   } else gtk_widget_set_sensitive( SBCache,FALSE );
 
 // -- disables
@@ -479,8 +479,8 @@
 	gtkLoadFullscreen=gtk_toggle_button_get_active( GTK_TOGGLE_BUTTON( CBLoadFullscreen ) );
 	gtkSet( gtkSetAutoq,HSPPQualityadj->value,NULL );
 
-	if ( gtk_toggle_button_get_active( GTK_TOGGLE_BUTTON( CBCache ) ) ) stream_cache_size=SBCacheadj->value;
-	 else stream_cache_size=0;
+	if ( gtk_toggle_button_get_active( GTK_TOGGLE_BUTTON( CBCache ) ) ) stream_cache_size=(int)SBCacheadj->value;
+	 else stream_cache_size=-1;
 
 	{
 	 int i;




More information about the MPlayer-cvslog mailing list