]> git.sesse.net Git - vlc/blobdiff - src/misc/devices.c
vcdx: Fix memleaks.
[vlc] / src / misc / devices.c
index 609786ef0fe6b96f3bd51d2e09f4177307783b92..e6241c8d473f6520560257fd1f5b609363ddc31b 100644 (file)
 # include "config.h"
 #endif
 
-#include <vlc/vlc.h>
+#include <vlc_common.h>
 #include <vlc/intf.h>
 #include <vlc_devices.h>
 
+static intf_thread_t *p_probe_thread = NULL;
+
 void devices_ProbeCreate( vlc_object_t *p_this )
 {
     intf_thread_t * p_probe;
-    p_this->p_libvlc_global->p_probe = NULL;
 
     /* Allocate structure */
     p_probe = vlc_object_create( p_this, VLC_OBJECT_INTF );
     if( !p_probe )
-    {
-        msg_Err( p_this, "out of memory" );
         return;
-    }
     p_probe->p_module = module_Need( p_probe, "devices probe", "", false );
     if( p_probe->p_module == NULL )
     {
@@ -54,7 +52,7 @@ void devices_ProbeCreate( vlc_object_t *p_this )
         return;
     }
 
-    p_this->p_libvlc_global->p_probe = p_probe;
+    p_probe_thread = p_probe;
 }
 
 #endif