[vlc-commits] commit: activex: missing media_list lock/unlock (Jean-Paul Saman )
git at videolan.org
git at videolan.org
Thu Mar 18 11:19:14 CET 2010
vlc | branch: master | Jean-Paul Saman <jean-paul.saman at m2x.nl> | Tue Feb 16 10:00:24 2010 +0100| [b7d39d41515a9ecff1b34c0bb4cec7f4ca4e454e] | committer: Jean-Paul Saman
activex: missing media_list lock/unlock
Signed-off-by: Jean-Paul Saman <jean-paul.saman at m2x.nl>
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=b7d39d41515a9ecff1b34c0bb4cec7f4ca4e454e
---
projects/activex/plugin.h | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/projects/activex/plugin.h b/projects/activex/plugin.h
index 8541262..388e732 100644
--- a/projects/activex/plugin.h
+++ b/projects/activex/plugin.h
@@ -270,7 +270,11 @@ public:
void playlist_delete_item(int idx)
{
if( _p_mlist )
+ {
+ libvlc_media_list_lock(_p_mlist);
libvlc_media_list_remove_index(_p_mlist,idx);
+ libvlc_media_list_unlock(_p_mlist);
+ }
}
void playlist_clear()
{
More information about the vlc-commits
mailing list