[vlc-devel] [PATCH] lib: media: reset parsed_status on new parse request
Thomas Guillem
thomas at gllm.fr
Tue Oct 22 12:45:14 CEST 2019
Otherwise, events are not propagated after the first request.
cf. f37171e57b0d0af922215ffed19111a4f317fb29
---
lib/media.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/lib/media.c b/lib/media.c
index dd0513633f6..f0f1adb1bcf 100644
--- a/lib/media.c
+++ b/lib/media.c
@@ -781,7 +781,10 @@ static int media_parse(libvlc_media_t *media, bool b_async,
needed = !media->has_asked_preparse;
media->has_asked_preparse = true;
if (needed)
+ {
media->is_parsed = false;
+ media->parsed_status = 0;
+ }
vlc_mutex_unlock(&media->parsed_lock);
if (needed)
--
2.20.1
More information about the vlc-devel
mailing list