[Mplayer-cvslog] CVS: main/Gui/mplayer/gtk opts.c,1.33,1.34
Zoltan Ponekker
pontscho at mplayerhq.hu
Mon Nov 25 19:18:49 CET 2002
- Previous message: [Mplayer-cvslog] CVS: main/Gui cfg.c,1.21,1.22 cfg.h,1.7,1.8 interface.c,1.58,1.59 interface.h,1.29,1.30
- Next message: [Mplayer-cvslog] CVS: main/loader win32.c,1.66,1.67
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Update of /cvsroot/mplayer/main/Gui/mplayer/gtk
In directory mail:/var/tmp.root/cvs-serv14955/Gui/mplayer/gtk
Modified Files:
opts.c
Log Message:
cache (buzeralas)
Index: opts.c
===================================================================
RCS file: /cvsroot/mplayer/main/Gui/mplayer/gtk/opts.c,v
retrieving revision 1.33
retrieving revision 1.34
diff -u -r1.33 -r1.34
--- opts.c 25 Nov 2002 16:22:58 -0000 1.33
+++ opts.c 25 Nov 2002 18:18:45 -0000 1.34
@@ -177,9 +177,10 @@
if ( audio_driver_list )
{
char * name = gstrdup( audio_driver_list[0] );
- char * sep = strchr( audio_driver_list[0],':' );
+ char * sep = gstrchr( audio_driver_list[0],':' );
if ( sep ) *sep=0;
if ( !gstrcmp( name,(char *)info->short_name ) ) old_audio_driver=i - 1;
+ free( name );
}
tmp[0]=(char *)info->short_name; tmp[1]=(char *)info->name; gtk_clist_append( GTK_CLIST( CLADrivers ),tmp );
}
@@ -311,11 +312,9 @@
}
gtk_toggle_button_set_active( GTK_TOGGLE_BUTTON( CBCache ),0 );
- if ( stream_cache_size > 0 )
- {
- gtk_toggle_button_set_active( GTK_TOGGLE_BUTTON( CBCache ),1 );
- gtk_adjustment_set_value( SBCacheadj,(float)stream_cache_size );
- } else gtk_widget_set_sensitive( SBCache,FALSE );
+ gtk_adjustment_set_value( SBCacheadj,(float)gtkCacheSize );
+ if ( !gtkCacheOn ) gtk_widget_set_sensitive( SBCache,FALSE );
+ else gtk_toggle_button_set_active( GTK_TOGGLE_BUTTON( CBCache ),1 );
// -- disables
#ifndef USE_SUB
@@ -479,8 +478,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=(int)SBCacheadj->value;
- else stream_cache_size=-1;
+ if ( gtk_toggle_button_get_active( GTK_TOGGLE_BUTTON( CBCache ) ) ) { gtkCacheSize=(int)SBCacheadj->value; gtkCacheOn=1; }
+ else gtkCacheOn=0;
{
int i;
- Previous message: [Mplayer-cvslog] CVS: main/Gui cfg.c,1.21,1.22 cfg.h,1.7,1.8 interface.c,1.58,1.59 interface.h,1.29,1.30
- Next message: [Mplayer-cvslog] CVS: main/loader win32.c,1.66,1.67
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the MPlayer-cvslog
mailing list