[MPlayer-cvslog] r32868 - trunk/sub/subreader.c

cboesch subversion at mplayerhq.hu
Mon Feb 7 20:27:18 CET 2011


Author: cboesch
Date: Mon Feb  7 20:27:17 2011
New Revision: 32868

Log:
Handle mp_path_join failure in load_vob_subtitle.

Modified:
   trunk/sub/subreader.c

Modified: trunk/sub/subreader.c
==============================================================================
--- trunk/sub/subreader.c	Sun Feb  6 20:01:52 2011	(r32867)
+++ trunk/sub/subreader.c	Mon Feb  7 20:27:17 2011	(r32868)
@@ -2194,6 +2194,8 @@ void load_vob_subtitle(const char *fname
     mp_subdir = get_path("sub/");
     if (mp_subdir) {
         char *psub = mp_path_join(mp_subdir, mp_basename(name));
+        if (!psub)
+            goto out;
         add_f(psub, ifo, 0, spu);
         free(psub);
     }


More information about the MPlayer-cvslog mailing list