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;
libhal_free_string( devices[ i ] );
}
}
- while( !p_sd->b_die )
+ while( vlc_object_alive (p_sd) )
{
/* look for events on the bus, blocking 1 second */
dbus_connection_read_write_dispatch( p_sys->p_connection, 1000 );