[vlc-commits] lib: media: fix media not being preparsed after a failure
    Thomas Guillem 
    git at videolan.org
       
    Mon Sep 16 11:41:50 CEST 2019
    
    
  
vlc | branch: master | Thomas Guillem <thomas at gllm.fr> | Fri Sep 13 14:41:31 2019 +0200| [f37171e57b0d0af922215ffed19111a4f317fb29] | committer: Thomas Guillem
lib: media: fix media not being preparsed after a failure
After a failure (like when browsing a smb folder with credential), it was
impossible to preparse the same media again.
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=f37171e57b0d0af922215ffed19111a4f317fb29
---
 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 );
    
    
More information about the vlc-commits
mailing list