[vlc-commits] module: do not read handle of a static plugin

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


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

module: do not read handle of a static plugin

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

 src/modules/bank.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/modules/bank.c b/src/modules/bank.c
index 06a251d877..7394f41b78 100644
--- a/src/modules/bank.c
+++ b/src/modules/bank.c
@@ -536,6 +536,8 @@ int module_Map(struct vlc_logger *log, vlc_plugin_t *plugin)
 {
     static vlc_mutex_t lock = VLC_STATIC_MUTEX;
 
+    if (plugin->abspath == NULL)
+        return 0; /* static module needs not be mapped */
     if (atomic_load_explicit(&plugin->handle, memory_order_acquire))
         return 0; /* fast path: already loaded */
 



More information about the vlc-commits mailing list