[vlc-devel] commit: p_root->p_probe: unused, remove ( Rémi Denis-Courmont )

git version control git at videolan.org
Sun May 4 18:39:10 CEST 2008


vlc | branch: master | Rémi Denis-Courmont <rem at videolan.org> | Sun May  4 19:40:22 2008 +0300| [49dd062d2e4f097d3af73e0478476f7c39db1cf5]

p_root->p_probe: unused, remove

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=49dd062d2e4f097d3af73e0478476f7c39db1cf5
---

 src/libvlc.h       |    1 -
 src/misc/devices.c |    5 +++--
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/libvlc.h b/src/libvlc.h
index 9b793a7..6a31ff6 100644
--- a/src/libvlc.h
+++ b/src/libvlc.h
@@ -115,7 +115,6 @@ struct libvlc_global_data_t
     vlc_object_t **        pp_objects;  ///< Array of all objects
 
     module_bank_t *        p_module_bank; ///< The module bank
-    intf_thread_t         *p_probe;       ///< Devices prober
 
     /* Arch-specific variables */
 #if defined( SYS_BEOS )
diff --git a/src/misc/devices.c b/src/misc/devices.c
index 609786e..e0f839d 100644
--- a/src/misc/devices.c
+++ b/src/misc/devices.c
@@ -34,10 +34,11 @@
 #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 );
@@ -54,7 +55,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




More information about the vlc-devel mailing list