X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=src%2Fmisc%2Fdevices.c;h=e6241c8d473f6520560257fd1f5b609363ddc31b;hb=6d937c8f88c36262433d5060a82f9cd3d5c69786;hp=2b878c41802532aedad9f392f26b88d7eba699bf;hpb=a78e273ec53ff8a6c3993f3deda0b893f8dd709a;p=vlc diff --git a/src/misc/devices.c b/src/misc/devices.c index 2b878c4180..e6241c8d47 100644 --- a/src/misc/devices.c +++ b/src/misc/devices.c @@ -2,7 +2,7 @@ * devices.c : Handling of devices probing ***************************************************************************** * Copyright (C) 1998-2004 the VideoLAN team - * $Id: cpu.c 14103 2006-02-01 12:44:16Z sam $ + * $Id$ * * Authors: Clément Stenac * @@ -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