[MPlayer-cvslog] r38069 - trunk/gui/interface.c

ib subversion at mplayerhq.hu
Thu Apr 12 15:23:53 EEST 2018


Author: ib
Date: Thu Apr 12 15:23:53 2018
New Revision: 38069

Log:
Remove pointless code.

Don't use sub_name[] to pass the subtitle name, because the following
call to update_set_of_subtitles() will handle it by using subdata.

Modified:
   trunk/gui/interface.c

Modified: trunk/gui/interface.c
==============================================================================
--- trunk/gui/interface.c	Thu Apr 12 15:18:18 2018	(r38068)
+++ trunk/gui/interface.c	Thu Apr 12 15:23:53 2018	(r38069)
@@ -1421,10 +1421,6 @@ void mplayerLoadSubtitle(const char *nam
 
         if (!subdata)
             gmp_msg(MSGT_GPLAYER, MSGL_ERR, MSGTR_CantLoadSub, name);
-
-        sub_name    = (malloc(2 * sizeof(char *))); // when mplayer will be restarted
-        sub_name[0] = strdup(name);                 // sub_name[0] will be read
-        sub_name[1] = NULL;
     }
 
     update_set_of_subtitles();


More information about the MPlayer-cvslog mailing list