[vlc-commits] Fix logic

Rémi Denis-Courmont git at videolan.org
Tue Jul 12 19:57:34 CEST 2011


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Tue Jul 12 20:57:22 2011 +0300| [0ab82b550d495a9bbb1430c9aefadf5079f5b546] | committer: Rémi Denis-Courmont

Fix logic

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=0ab82b550d495a9bbb1430c9aefadf5079f5b546
---

 src/control/media.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/control/media.c b/src/control/media.c
index dbb29db..b666832 100644
--- a/src/control/media.c
+++ b/src/control/media.c
@@ -632,7 +632,7 @@ libvlc_media_parse_async(libvlc_media_t *media)
     bool needed;
 
     vlc_mutex_lock(&media->parsed_lock);
-    needed = media->has_asked_preparse;
+    needed = !media->has_asked_preparse;
     media->has_asked_preparse = true;
     vlc_mutex_unlock(&media->parsed_lock);
 



More information about the vlc-commits mailing list