]> git.sesse.net Git - vlc/commitdiff
Use a libhal property only if it exists
authorRafaël Carré <funman@videolan.org>
Thu, 5 Jun 2008 11:00:14 +0000 (13:00 +0200)
committerRafaël Carré <funman@videolan.org>
Thu, 5 Jun 2008 11:00:14 +0000 (13:00 +0200)
Regression introduced in [c75dafab5775afe24fc5f2bd944199bb361d6269]
Bug spotted by Fabio Ritrovato

modules/services_discovery/hal.c

index 00c5bf15f435032a6e8653da8f7a82950622c441..a6837d51e91ea13994a261fd24fbc5d83189dc44 100644 (file)
@@ -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;