- psz_disc_type = hal_device_get_property_string( p_sys->p_ctx,
- psz_device,
- "volume.disc.type" );
-#endif
- if( !strncmp( psz_disc_type, "dvd_r", 5 ) )
- {
-#ifdef HAVE_HAL_1
- /* hal 0.2.9.7 (HAVE_HAL) has not is_videodvd
- * but hal 0.5.0 (HAVE_HAL_1) has */
- if (libhal_device_get_property_bool( p_sys->p_ctx, psz_device,
- "volume.disc.is_videodvd", NULL ) )
-#endif
- AddDvd( p_sd, psz_device );
- }
- else if( !strncmp( psz_disc_type, "cd_r", 4 ) )
- {
-#ifdef HAVE_HAL_1
- if( libhal_device_get_property_bool( p_sys->p_ctx, psz_device,
- "volume.disc.has_audio" , NULL ) )
-#else
- if( hal_device_get_property_bool( p_sys->p_ctx, psz_device,
- "volume.disc.has_audio" ) )
-#endif
- {
- AddCdda( p_sd, psz_device );
- }
- }
+ if( libhal_device_get_property_bool( p_sys->p_ctx, psz_device,
+ "volume.disc.has_audio" , NULL ) )
+ AddCdda( p_sd, psz_device );