[vlc-devel] commit: Use a libhal property only if it exists ( Rafaël Carré )

git version control git at videolan.org
Thu Jun 5 12:59:33 CEST 2008


vlc | branch: master | Rafaël Carré <funman at videolan.org> | Thu Jun  5 13:00:14 2008 +0200| [ae2b7693af07621c2b3d7cf22c9acb242cb224d8]

Use a libhal property only if it exists

Regression introduced in [c75dafab5775afe24fc5f2bd944199bb361d6269]
Bug spotted by Fabio Ritrovato

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

 modules/services_discovery/hal.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/modules/services_discovery/hal.c b/modules/services_discovery/hal.c
index 00c5bf1..a6837d5 100644
--- a/modules/services_discovery/hal.c
+++ b/modules/services_discovery/hal.c
@@ -270,7 +270,7 @@ static void ParseDevice( services_discovery_t *p_sd, const char *psz_device )
     char *psz_disc_type;
     services_discovery_sys_t    *p_sys  = p_sd->p_sys;
 
-    if( libhal_device_property_exists( p_sys->p_ctx, psz_device,
+    if( !libhal_device_property_exists( p_sys->p_ctx, psz_device,
                                        "volume.disc.type", NULL ) )
         return;
 




More information about the vlc-devel mailing list