Commit c6ab3932 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.
parent 732ea8c6
......@@ -282,6 +282,15 @@ 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 )
......
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