From fcea588a18214b13cf3635a50e295ba389dded31 Mon Sep 17 00:00:00 2001 From: pontscho Date: Mon, 16 Dec 2002 22:25:17 +0000 Subject: - fix (?) "mixer bug" - fix audio_id/video_id changing - fix some other bug git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@8485 b3059339-0415-0410-9bf9-f77b7e298cf2 --- Gui/mplayer/gtk/opts.c | 2 ++ Gui/mplayer/mw.c | 6 ++---- Gui/mplayer/play.c | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) (limited to 'Gui/mplayer') diff --git a/Gui/mplayer/gtk/opts.c b/Gui/mplayer/gtk/opts.c index ccf084bc86..0a5648258d 100644 --- a/Gui/mplayer/gtk/opts.c +++ b/Gui/mplayer/gtk/opts.c @@ -175,6 +175,7 @@ void ShowPreferences( void ) int i = 0; char * tmp[3]; tmp[2]=""; old_audio_driver=-1; + if ( CLADrivers ) gtk_clist_clear( GTK_CLIST( CLADrivers ) ); while ( audio_out_drivers[i] ) { const ao_info_t *info = audio_out_drivers[i++]->info; @@ -220,6 +221,7 @@ void ShowPreferences( void ) int i = 0, c = 0; char * tmp[3]; tmp[2]=""; old_video_driver=0; + if ( CLVDrivers ) gtk_clist_clear( GTK_CLIST( CLVDrivers ) ); while ( video_out_drivers[i] ) if ( video_out_drivers[i++]->control( VOCTRL_GUISUPPORT,NULL ) == VO_TRUE ) { diff --git a/Gui/mplayer/mw.c b/Gui/mplayer/mw.c index 646e74dcb6..52d721a09f 100644 --- a/Gui/mplayer/mw.c +++ b/Gui/mplayer/mw.c @@ -273,14 +273,12 @@ void mplEventHandling( int msg,float param ) case evSetAudio: if ( !guiIntfStruct.demuxer || audio_id == iparam ) break; audio_id=iparam; - guiIntfStruct.NewPlay=1; - break; + goto play; case evSetVideo: if ( !guiIntfStruct.demuxer || video_id == iparam ) break; video_id=iparam; - guiIntfStruct.NewPlay=1; - break; + goto play; #ifdef HAVE_VCD case evSetVCDTrack: diff --git a/Gui/mplayer/play.c b/Gui/mplayer/play.c index 62ad3e2e90..66b96f11dd 100644 --- a/Gui/mplayer/play.c +++ b/Gui/mplayer/play.c @@ -106,7 +106,7 @@ void mplEnd( void ) } else { - if ( guiIntfStruct.FilenameChanged ) return; + if ( guiIntfStruct.FilenameChanged || guiIntfStruct.NewPlay ) return; guiIntfStruct.TimeSec=0; guiIntfStruct.Position=0; -- cgit v1.2.3