[MPlayer-cvslog] r38520 - trunk/gui/dialog/preferences.c
ib
subversion at mplayerhq.hu
Sun May 12 20:00:22 EEST 2024
Author: ib
Date: Sun May 12 20:00:22 2024
New Revision: 38520
Log:
Fix deletion of (manually added) drivers from the configuration file.
If the user has not (explicitly) selected anything, the configuration
of the audio or video output driver must remain unchanged.
Modified:
trunk/gui/dialog/preferences.c
Modified: trunk/gui/dialog/preferences.c
==============================================================================
--- trunk/gui/dialog/preferences.c Sun May 12 19:58:05 2024 (r38519)
+++ trunk/gui/dialog/preferences.c Sun May 12 20:00:22 2024 (r38520)
@@ -307,8 +307,8 @@ static void prButton( GtkButton * button
mplayer( MPLAYER_SET_EXTRA_STEREO,gtk_adjustment_get_value(HSExtraStereoMuladj),0 );
audio_delay=gtk_adjustment_get_value(HSAudioDelayadj);
- listSet( &audio_driver_list,ao_driver[0] );
- listSet( &video_driver_list,vo_driver[0] );
+ if (ao_driver[0]) listSet(&audio_driver_list, ao_driver[0]);
+ if (vo_driver[0]) listSet(&video_driver_list, vo_driver[0]);
/* 2nd page */
vo_doublebuffering=gtk_toggle_button_get_active( GTK_TOGGLE_BUTTON( CBDoubleBuffer ) );
More information about the MPlayer-cvslog
mailing list