[Mplayer-cvslog] CVS: main mplayer.c,1.764,1.765

Dominik Mierzejewski CVS syncmail at mplayerhq.hu
Sun Jul 25 02:33:35 CEST 2004


CVS change done by Dominik Mierzejewski CVS

Update of /cvsroot/mplayer/main
In directory mail:/var2/tmp/cvs-serv32585

Modified Files:
	mplayer.c 
Log Message:
fix segfault when loading subtitles (idea by pl)


Index: mplayer.c
===================================================================
RCS file: /cvsroot/mplayer/main/mplayer.c,v
retrieving revision 1.764
retrieving revision 1.765
diff -u -r1.764 -r1.765
--- mplayer.c	23 Jul 2004 16:10:21 -0000	1.764
+++ mplayer.c	25 Jul 2004 00:33:32 -0000	1.765
@@ -1657,8 +1657,10 @@
         add_subtitles (*tmp2++, sh_video->fps, 0);
     free(tmp);
     if (set_of_sub_size == 0)
+    {
         add_subtitles (mem_ptr=get_path("default.sub"), sh_video->fps, 1);
     free(mem_ptr); // release the buffer created by get_path()
+    }
     if (set_of_sub_size > 0)
         add_subtitles (NULL, sh_video->fps, 1);
   }




More information about the MPlayer-cvslog mailing list