Mercurial > mplayer.hg
comparison Gui/interface.c @ 7887:0e5544951425
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)
author | arpi |
---|---|
date | Wed, 23 Oct 2002 23:13:26 +0000 |
parents | b3c7c62c106c |
children | e5dda05f9aab |
comparison
equal
deleted
inserted
replaced
7886:32eceb109114 | 7887:0e5544951425 |
---|---|
84 free( *p ); *p=NULL; | 84 free( *p ); *p=NULL; |
85 } | 85 } |
86 | 86 |
87 void gset( char ** str,char * what ) | 87 void gset( char ** str,char * what ) |
88 { | 88 { |
89 if ( *str ) { if ( !strstr( *str,what ) ) gstrcat( str,"," ); gstrcat( str,what ); } | 89 if ( *str ) { if ( !strstr( *str,what ) ) { gstrcat( str,"," ); gstrcat( str,what ); }} |
90 else gstrcat( str,what ); | 90 else gstrcat( str,what ); |
91 } | 91 } |
92 | 92 |
93 void gaddlist( char *** list,char * entry ) | 93 void gaddlist( char *** list,char * entry ) |
94 { | 94 { |
539 if ( gtkVopPP ) add_vop( "pp" ); | 539 if ( gtkVopPP ) add_vop( "pp" ); |
540 else remove_vop( "pp" ); | 540 else remove_vop( "pp" ); |
541 | 541 |
542 // --- audio opts | 542 // --- audio opts |
543 audio_delay=gtkAODelay; | 543 audio_delay=gtkAODelay; |
544 if ( ao_plugin_cfg.plugin_list ) { free( ao_plugin_cfg.plugin_list ); ao_plugin_cfg.plugin_list=NULL; } | 544 // if ( ao_plugin_cfg.plugin_list ) { free( ao_plugin_cfg.plugin_list ); ao_plugin_cfg.plugin_list=NULL; } |
545 if ( gtkAONorm ) gset( &ao_plugin_cfg.plugin_list,"volnorm" ); | 545 if ( gtkAONorm ) gset( &ao_plugin_cfg.plugin_list,"volnorm" ); |
546 if ( gtkEnableAudioEqualizer ) gset( &ao_plugin_cfg.plugin_list,"eq" ); | 546 if ( gtkEnableAudioEqualizer ) gset( &ao_plugin_cfg.plugin_list,"eq" ); |
547 if ( gtkAOExtraStereo ) | 547 if ( gtkAOExtraStereo ) |
548 { | 548 { |
549 gset( &ao_plugin_cfg.plugin_list,"extrastereo" ); | 549 gset( &ao_plugin_cfg.plugin_list,"extrastereo" ); |