[vlc-commits] modules: assert the modules bank mutex

Rémi Denis-Courmont git at videolan.org
Sun Oct 21 13:01:30 CEST 2018


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Sat Oct 20 22:50:42 2018 +0300| [63490bde7b103aca41070451dc3b4bb248d8e695] | committer: Rémi Denis-Courmont

modules: assert the modules bank mutex

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

 src/modules/bank.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/modules/bank.c b/src/modules/bank.c
index bc54192c48..f56fc94838 100644
--- a/src/modules/bank.c
+++ b/src/modules/bank.c
@@ -146,7 +146,7 @@ error:
  */
 static void vlc_plugin_store(vlc_plugin_t *lib)
 {
-    /*vlc_assert_locked (&modules.lock);*/
+    vlc_mutex_assert(&modules.lock);
 
     lib->next = vlc_plugins;
     vlc_plugins = lib;
@@ -619,8 +619,8 @@ void module_EndBank (bool b_plugins)
      * from module_InitBank(). */
     if( b_plugins )
         vlc_mutex_lock (&modules.lock);
-    /*else
-        vlc_assert_locked (&modules.lock); not for static mutexes :( */
+    else
+        vlc_mutex_assert(&modules.lock);
 
     assert (modules.usage > 0);
     if (--modules.usage == 0)



More information about the vlc-commits mailing list