Commit 035dac0a authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

Do not scan for subtitles files in the current dir for TS files

This should work around #3547.
(manually cherry picked from c6ab39323aacc0d62f0908a3f526e93261de62e2)
parent c58c5428
......@@ -303,6 +303,16 @@ 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_fname );
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 )
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment