<html><head></head><body>Hi,<br><br>Just a few days ago, Hugo made the case that media can be used in multiple threads. Now, this seems to be doing the exact opposite, propose a design that won't work if multiple threads use the same media (and try to parse it).<br><br>This does not add up. I'm not sure which way is right, but it can't be both.<br><br><div class="gmail_quote">Le 22 octobre 2019 13:45:14 GMT+03:00, Thomas Guillem <thomas@gllm.fr> 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">Otherwise, events are not propagated after the first request.<br><br>cf. f37171e57b0d0af922215ffed19111a4f317fb29<hr> lib/media.c | 3 +++<br> 1 file changed, 3 insertions(+)<br><br>diff --git a/lib/media.c b/lib/media.c<br>index dd0513633f6..f0f1adb1bcf 100644<br>--- a/lib/media.c<br>+++ b/lib/media.c<br>@@ -781,7 +781,10 @@ static int media_parse(libvlc_media_t *media, bool b_async,<br> needed = !media->has_asked_preparse;<br> media->has_asked_preparse = true;<br> if (needed)<br>+ {<br> media->is_parsed = false;<br>+ media->parsed_status = 0;<br>+ }<br> vlc_mutex_unlock(&media->parsed_lock);<br> <br> if (needed)</pre></blockquote></div><br>-- <br>Envoyé de mon appareil Android avec Courriel K-9 Mail. Veuillez excuser ma brièveté.</body></html>