# 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" );
return;
}
- p_this->p_libvlc_global->p_probe = p_probe;
+ p_probe_thread = p_probe;
}
#endif