[vlc-commits] Fix other subtitle pathes autodetection

Jean-Baptiste Kempf git at videolan.org
Tue Apr 3 10:23:52 CEST 2012


vlc/vlc-2.0 | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Tue Apr  3 01:37:04 2012 +0200| [a742ca136a9e998fc8786ef37c636968f3f37522] | committer: Jean-Baptiste Kempf

Fix other subtitle pathes autodetection
(cherry picked from commit 9f0c79759d108db628c0095fc0a42ade0e6d076a)

Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>

> http://git.videolan.org/gitweb.cgi/vlc/vlc-2.0.git/?a=commit;h=a742ca136a9e998fc8786ef37c636968f3f37522
---

 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 4108a9b..b7505b6 100644
--- a/src/input/subtitles.c
+++ b/src/input/subtitles.c
@@ -280,7 +280,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