[vlc-commits] Fix other subtitle pathes autodetection
    Jean-Baptiste Kempf 
    git at videolan.org
       
    Tue Apr  3 02:39:03 CEST 2012
    
    
  
vlc | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Tue Apr  3 01:37:04 2012 +0200| [9f0c79759d108db628c0095fc0a42ade0e6d076a] | committer: Jean-Baptiste Kempf
Fix other subtitle pathes autodetection
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=9f0c79759d108db628c0095fc0a42ade0e6d076a
---
 src/input/subtitles.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/src/input/subtitles.c b/src/input/subtitles.c
index b8f4e72..5275eee 100644
--- a/src/input/subtitles.c
+++ b/src/input/subtitles.c
@@ -278,7 +278,7 @@ char **subtitles_Detect( input_thread_t *p_this, char *psz_path,
         free( psz_fname );
         return NULL;
     }
-    *(f_fname++) = 0; /* skip dir separator */
+    *(++f_fname) = 0; /* keep dir separator in f_dir */
 
     i_fname_len = strlen( f_fname );
 
    
    
More information about the vlc-commits
mailing list