[Mplayer-cvslog] CVS: main/Gui/mplayer/gtk opts.c,1.31,1.32
Zoltan Ponekker
pontscho at mplayerhq.hu
Wed Nov 13 15:12:24 CET 2002
Update of /cvsroot/mplayer/main/Gui/mplayer/gtk
In directory mail:/var/tmp.root/cvs-serv19925/Gui/mplayer/gtk
Modified Files:
opts.c
Log Message:
10l
Index: opts.c
===================================================================
RCS file: /cvsroot/mplayer/main/Gui/mplayer/gtk/opts.c,v
retrieving revision 1.31
retrieving revision 1.32
diff -u -r1.31 -r1.32
--- opts.c 12 Nov 2002 21:52:56 -0000 1.31
+++ opts.c 13 Nov 2002 14:12:21 -0000 1.32
@@ -169,7 +169,7 @@
{
int i = 0;
char * tmp[3]; tmp[2]="";
- old_audio_driver=0;
+ old_audio_driver=-1;
while ( audio_out_drivers[i] )
{
const ao_info_t *info = audio_out_drivers[i++]->info;
@@ -183,12 +183,15 @@
}
tmp[0]=(char *)info->short_name; tmp[1]=(char *)info->name; gtk_clist_append( GTK_CLIST( CLADrivers ),tmp );
}
- gtk_clist_select_row( GTK_CLIST( CLADrivers ),old_audio_driver,0 );
- gtk_clist_get_text( GTK_CLIST( CLADrivers ),old_audio_driver,0,(char **)&ao_driver );
- gtk_widget_set_sensitive( AConfig,FALSE );
+ if ( old_audio_driver > -1 )
+ {
+ gtk_clist_select_row( GTK_CLIST( CLADrivers ),old_audio_driver,0 );
+ gtk_clist_get_text( GTK_CLIST( CLADrivers ),old_audio_driver,0,(char **)&ao_driver );
+ gtk_widget_set_sensitive( AConfig,FALSE );
#ifdef USE_OSS_AUDIO
- if ( !strncmp( ao_driver[0],"oss",3 ) ) gtk_widget_set_sensitive( AConfig,TRUE );
+ if ( !strncmp( ao_driver[0],"oss",3 ) ) gtk_widget_set_sensitive( AConfig,TRUE );
#endif
+ }
}
// -- 2. page
More information about the MPlayer-cvslog
mailing list