A small patch to Gui/interface.c; the first fix is a plain bug, the second is

there as i think it's a pity that "-aop list=resample" doesn't work in gui mode.
patch by Björn Sandell <biorn@dce.chalmers.se>
(checked & accepted by Pontscho)


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@7888 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
arpi 2002-10-23 23:13:26 +00:00
parent cccc5f029a
commit cf9fcd648f
1 changed files with 2 additions and 2 deletions

View File

@ -86,7 +86,7 @@ void gfree( void ** p )
void gset( char ** str,char * what )
{
if ( *str ) { if ( !strstr( *str,what ) ) gstrcat( str,"," ); gstrcat( str,what ); }
if ( *str ) { if ( !strstr( *str,what ) ) { gstrcat( str,"," ); gstrcat( str,what ); }}
else gstrcat( str,what );
}
@ -541,7 +541,7 @@ int guiGetEvent( int type,char * arg )
// --- audio opts
audio_delay=gtkAODelay;
if ( ao_plugin_cfg.plugin_list ) { free( ao_plugin_cfg.plugin_list ); ao_plugin_cfg.plugin_list=NULL; }
// if ( ao_plugin_cfg.plugin_list ) { free( ao_plugin_cfg.plugin_list ); ao_plugin_cfg.plugin_list=NULL; }
if ( gtkAONorm ) gset( &ao_plugin_cfg.plugin_list,"volnorm" );
if ( gtkEnableAudioEqualizer ) gset( &ao_plugin_cfg.plugin_list,"eq" );
if ( gtkAOExtraStereo )