[vlc-devel] [PATCH] lib: media: fix media not being preparsed after a failure

Thomas Guillem thomas at gllm.fr
Fri Sep 13 14:43:16 CEST 2019


After a failure (like when browsing a smb folder with credential), it was
impossible to repase the same media again.
---
 lib/media.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/media.c b/lib/media.c
index a1c6d4e24a..61cb82a889 100644
--- a/lib/media.c
+++ b/lib/media.c
@@ -282,7 +282,7 @@ static void send_parsed_changed( libvlc_media_t *p_md,
     }
 
     p_md->parsed_status = new_status;
-    if( p_md->parsed_status == libvlc_media_parsed_status_skipped )
+    if( p_md->parsed_status != libvlc_media_parsed_status_done )
         p_md->has_asked_preparse = false;
 
     vlc_mutex_unlock( &p_md->parsed_lock );
-- 
2.20.1



More information about the vlc-devel mailing list