[MPlayer-cvslog] r38518 - trunk/gui/dialog/preferences.c

ib subversion at mplayerhq.hu
Sun May 12 19:56:34 EEST 2024


Author: ib
Date: Sun May 12 19:56:34 2024
New Revision: 38518

Log:
Fix using the wrong string variable.

It's the copy of audio_driver_list[0] that can be modified as needed,
not the original.

Modified:
   trunk/gui/dialog/preferences.c

Modified: trunk/gui/dialog/preferences.c
==============================================================================
--- trunk/gui/dialog/preferences.c	Sun May 12 19:52:42 2024	(r38517)
+++ trunk/gui/dialog/preferences.c	Sun May 12 19:56:34 2024	(r38518)
@@ -1242,7 +1242,7 @@ void ShowPreferences( void )
     if ( audio_driver_list )
      {
       char * name = gstrdup( audio_driver_list[0] );
-      char * sep = gstrchr( audio_driver_list[0],':' );
+      char * sep = gstrchr( name,':' );
       if ( sep ) *sep=0;
       if ( !gstrcmp( name,info->short_name ) ) old_audio_driver=c;
       free( name );


More information about the MPlayer-cvslog mailing list