X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=src%2Fmisc%2Fdevices.c;h=4e27c2817b8c7fb894c73a7974cfee27212123d5;hb=556f1a14e28bdf6a993e343f227a7e6dbac31e81;hp=d43d6699f49ba0daeb23a171004c99e3f11a0aa8;hpb=1f253f8d9a0730b61dc41a7baffdf9c634983446;p=vlc diff --git a/src/misc/devices.c b/src/misc/devices.c index d43d6699f4..4e27c2817b 100644 --- a/src/misc/devices.c +++ b/src/misc/devices.c @@ -30,23 +30,21 @@ # include "config.h" #endif -#include +#include #include #include +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