[vlc-commits] Fix support of .00x splitted files on Win32

Jean-Baptiste Kempf git at videolan.org
Wed Dec 5 23:39:40 CET 2012


vlc | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Wed Dec  5 23:35:05 2012 +0100| [95dac995ff2c8339922d29c804d12e67cc2ebf87] | committer: Jean-Baptiste Kempf

Fix support of .00x splitted files on Win32

Close #7292

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

 src/input/input.c |    6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/src/input/input.c b/src/input/input.c
index afc01ad..1fc3ea8 100644
--- a/src/input/input.c
+++ b/src/input/input.c
@@ -2930,14 +2930,18 @@ static void InputGetExtraFilesPattern( input_thread_t *p_input,
         if( asprintf( &psz_file, psz_format, psz_base, i ) < 0 )
             break;
 
-        if( vlc_stat( psz_file, &st ) || !S_ISREG( st.st_mode ) || !st.st_size )
+        char *psz_tmp_path = get_path( psz_file );
+
+        if( vlc_stat( psz_tmp_path, &st ) || !S_ISREG( st.st_mode ) || !st.st_size )
         {
             free( psz_file );
+            free( psz_tmp_path );
             break;
         }
 
         msg_Dbg( p_input, "Detected extra file `%s'", psz_file );
         TAB_APPEND( i_list, ppsz_list, psz_file );
+        free( psz_tmp_path );
     }
     free( psz_base );
 exit:



More information about the vlc-commits mailing list