]> git.sesse.net Git - vlc/blobdiff - src/misc/probe.c
Use var_Inherit* instead of var_CreateGet*.
[vlc] / src / misc / probe.c
index 79922fa66ee0f2eb3482c63fdee3ab926c403110..fe44aa7c4c40bbfd5ccd61e34d500da402fa3fe9 100644 (file)
@@ -24,6 +24,7 @@
 
 #include <vlc_common.h>
 #include <vlc_probe.h>
+#include <vlc_modules.h>
 #include "libvlc.h"
 
 #undef vlc_probe
@@ -37,12 +38,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;