]> git.sesse.net Git - vlc/blobdiff - src/misc/devices.c
Slovenian translation update by Matej Urbančič
[vlc] / src / misc / devices.c
index d43d6699f49ba0daeb23a171004c99e3f11a0aa8..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", "", VLC_FALSE );
+    p_probe->p_module = module_Need( p_probe, "devices probe", "", false );
     if( p_probe->p_module == NULL )
     {
         msg_Err( p_this, "no devices probing module could be loaded" );
@@ -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