]> git.sesse.net Git - vlc/commitdiff
Revert "Do not scan for subtitles files in the current dir for TS files"
authorLaurent Aimar <fenrir@videolan.org>
Sat, 26 Jun 2010 22:21:40 +0000 (00:21 +0200)
committerLaurent Aimar <fenrir@videolan.org>
Sun, 27 Jun 2010 17:03:19 +0000 (19:03 +0200)
This reverts commit c6ab39323aacc0d62f0908a3f526e93261de62e2.

It is not needed anymore with 769aa8d3f72623abd2543a84d90eba21c89e3f45.

src/input/subtitles.c

index 9976bac1b19e2f2eeaf9ec67d5cadc6a7e0d1949..2b5e57e02ad7926a73c0da35d429e119ed780369 100644 (file)
@@ -282,15 +282,6 @@ char **subtitles_Detect( input_thread_t *p_this, char *psz_path,
 
     i_fname_len = strlen( f_fname );
 
-    /* HACK: do not look for subtitles for Transport Streams */
-    /* This breaks the clock synchronization */
-    if( i_fname_len > 3 && !strcasecmp( f_fname + i_fname_len - 3, ".ts" ) )
-    {
-        free( f_dir );
-        free( psz_fname );
-        return NULL;
-    }
-
     f_fname_noext = malloc(i_fname_len + 1);
     f_fname_trim = malloc(i_fname_len + 1 );
     if( !f_fname_noext || !f_fname_trim )