[vlc-commits] modules: do not use magic value for plugin handle

Rémi Denis-Courmont git at videolan.org
Mon Jul 22 20:14:45 CEST 2019


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Mon Jul 22 21:02:09 2019 +0300| [7a37bab5779dc9da8beb1e3c9e1fae5a8cb75140] | committer: Rémi Denis-Courmont

modules: do not use magic value for plugin handle

This is not portable, and is no longer needed after the previous commit.

Fixes: #22569.

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

 src/modules/bank.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/modules/bank.c b/src/modules/bank.c
index 7394f41b78..90266c0e0e 100644
--- a/src/modules/bank.c
+++ b/src/modules/bank.c
@@ -166,7 +166,7 @@ static vlc_plugin_t *module_InitStatic(vlc_plugin_cb entry)
         return NULL;
 
 #ifdef HAVE_DYNAMIC_PLUGINS
-    atomic_init(&lib->handle, 1 /* must be non-zero for module_Map() */);
+    atomic_init(&lib->handle, 0);
     lib->unloadable = false;
 #endif
     return lib;



More information about the vlc-commits mailing list