changeset 12893:0c28de2f031f

fix segfault when loading subtitles (idea by pl)
author rathann
date Sun, 25 Jul 2004 00:33:32 +0000
parents 4e3f8c72d3eb
children 1591792d4054
files mplayer.c
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/mplayer.c	Sat Jul 24 18:32:19 2004 +0000
+++ b/mplayer.c	Sun Jul 25 00:33:32 2004 +0000
@@ -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);
   }