<!DOCTYPE html><html><head><title></title><style type="text/css">p.MsoNormal,p.MsoNoSpacing{margin:0}</style></head><body><div><br></div><div>On Fri, Feb 14, 2020, at 11:59, Rémi Denis-Courmont wrote:<br></div><blockquote type="cite" id="qt"><div>Hi,<br></div><div><br></div><div>This work-around exists to prevent completely breaking TS due to subtitle files. I don't think we should remove it.<br></div></blockquote><div><br></div><div>Hi,<br></div><div><br></div><div>I don't get it. This is what my first patch is fixing.<br></div><div><br></div><blockquote type="cite" id="qt"><div><br></div><div class="qt-gmail_quote"><div>Le 13 février 2020 18:27:59 GMT+02:00, Thomas Guillem <thomas@gllm.fr> a écrit :<br></div><blockquote style="margin-top:0pt;margin-right:0pt;margin-bottom:0pt;margin-left:0.8ex;border-left-color:rgb(204, 204, 204);border-left-style:solid;border-left-width:1px;padding-left:1ex;" class="qt-gmail_quote"><pre class="qt-k9mail"><div><hr> src/input/subtitles.c | 16 ----------------<br></div><div> 1 file changed, 16 deletions(-)<br></div><div><br></div><div>diff --git a/src/input/subtitles.c b/src/input/subtitles.c<br></div><div>index fa31e41774a..25ebb52087f 100644<br></div><div>--- a/src/input/subtitles.c<br></div><div>+++ b/src/input/subtitles.c<br></div><div>@@ -44,9 +44,6 @@<br></div><div>  * The possible extensions for subtitle files we support<br></div><div>  */<br></div><div> static const char *const sub_exts[] = { SLAVE_SPU_EXTENSIONS, "" };<br></div><div>-/* As core can't handle non default program hijacking by slaves,<br></div><div>- * we need to disable any SPU slave for those masters for now */<br></div><div>-static const char *const noslave_exts[] = { "m2ts", "ts" };<br></div><div> <br></div><div> static void strcpy_trim( char *d, const char *s )<br></div><div> {<br></div><div>@@ -232,19 +229,6 @@ int subtitles_Detect( input_thread_t *p_this, char *psz_path, const char *psz_na<br></div><div>     if( !psz_fname )<br></div><div>         return VLC_EGENERIC;<br></div><div> <br></div><div>-    const char *ext = strrchr( psz_fname, '.' );<br></div><div>-    if( ext != NULL )<br></div><div>-    {<br></div><div>-        for( size_t i=0; i<ARRAY_SIZE(noslave_exts); i++ )<br></div><div>-        {<br></div><div>-            if( !strcasecmp( &ext[1], noslave_exts[i] ) )<br></div><div>-            {<br></div><div>-                free( psz_fname );<br></div><div>-                return VLC_EGENERIC;<br></div><div>-            }<br></div><div>-        }<br></div><div>-    }<br></div><div>-<br></div><div>     /* extract filename & dirname from psz_fname */<br></div><div>     char *f_dir = strdup( psz_fname );<br></div><div>     if( f_dir == 0 )<br></div></pre></blockquote></div><div><br></div><div>-- <br></div><div>Envoyé de mon appareil Android avec Courriel K-9 Mail. Veuillez excuser ma brièveté. <br></div><div>_______________________________________________<br></div><div>vlc-devel mailing list<br></div><div>To unsubscribe or modify your subscription options:<br></div><div>https://mailman.videolan.org/listinfo/vlc-devel<br></div></blockquote><div><br></div></body></html>