<html><head></head><body>Hi,<br><br>I don't think that's right. You're just moving the problem from subs to audio and introducing a regression while doing so.<br><br><div class="gmail_quote">Le 29 mars 2021 18:51:01 GMT+03:00, Alaric Senat <dev.asenat@posteo.net> a écrit :<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<pre class="k9mail">Since c34d719f, all files passed by the option `input-slave` were set as<br>audio tracks no matter what.<br>This commit attempts to deduce the `input-slave` type with its file<br>extension and falls back to spu in case of failure.<br><br>Fixes #25549<hr> src/input/input.c | 11 ++++++++++-<br> 1 file changed, 10 insertions(+), 1 deletion(-)<br><br>diff --git a/src/input/input.c b/src/input/input.c<br>index ea64473a0b..aa8280e7b9 100644<br>--- a/src/input/input.c<br>+++ b/src/input/input.c<br>@@ -984,8 +984,17 @@ static void GetVarSlaves( input_thread_t *p_input,<br>         if( uri == NULL )<br>             continue;<br> <br>+        enum slave_type i_type;<br>+        if ( !input_item_slave_GetType(uri, &i_type) )<br>+        {<br>+            msg_Warn( p_input,<br>+                     "Can't deduce slave type of `%s\": falling back to spu.",<br>+                     uri );<br>+            i_type = SLAVE_TYPE_SPU;<br>+        }<br>         input_item_slave_t *p_slave =<br>-            input_item_slave_New( uri, SLAVE_TYPE_AUDIO, SLAVE_PRIORITY_USER );<br>+            input_item_slave_New( uri, i_type, SLAVE_PRIORITY_USER );<br>+<br>         free( uri );<br> <br>         if( unlikely( p_slave == NULL ) )</pre></blockquote></div><br>-- <br>Envoyé de mon appareil Android avec Courriel K-9 Mail. Veuillez excuser ma brièveté.</body></html>