]> git.sesse.net Git - vlc/blobdiff - src/misc/probe.c
vlc_(d|l|m)rand48: thread-safe wrappers for non-secure/fast PRNG
[vlc] / src / misc / probe.c
index 79922fa66ee0f2eb3482c63fdee3ab926c403110..d75d445155250c24479eed7503afef7070360ecb 100644 (file)
@@ -37,12 +37,16 @@ void *vlc_probe (vlc_object_t *obj,
         *pcount = 0;
         return NULL;
     }
+    vlc_object_attach (probe, obj);
     probe->list = NULL;
     probe->count = 0;
 
     module_t *mod = module_need (probe, capability, NULL, false);
     if (mod != NULL)
+    {
+        msg_Warn (probe, "probing halted");
         module_unneed (probe, mod);
+    }
 
     void *ret = probe->list;
     *pcount = probe->count;