diff options
author | Diego 'Flameeyes' Pettenò <flameeyes@gmail.com> | 2007-04-04 13:13:26 +0200 |
---|---|---|
committer | Diego 'Flameeyes' Pettenò <flameeyes@gmail.com> | 2007-04-04 13:13:26 +0200 |
commit | fb29effbbc643215c92fd20a9b97410d4dfc7498 (patch) | |
tree | 60569cef1cf58f4f82a2986c30255df4fcb1ba8a /src | |
parent | 1563a2e0e9557b293ed71de35f5615637df2823d (diff) | |
download | xine-lib-fb29effbbc643215c92fd20a9b97410d4dfc7498.tar.gz xine-lib-fb29effbbc643215c92fd20a9b97410d4dfc7498.tar.bz2 |
Check for audio_info_t.output_muted member, rather than assuming it's not available on NetBSD only.
With this, it's not needed to check for OpenBSD too.
Thanks to Pascal S. de Kloe for pointing at it.
Diffstat (limited to 'src')
-rw-r--r-- | src/audio_out/audio_sun_out.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/audio_out/audio_sun_out.c b/src/audio_out/audio_sun_out.c index 93361d2f3..9d9ede32c 100644 --- a/src/audio_out/audio_sun_out.c +++ b/src/audio_out/audio_sun_out.c @@ -807,7 +807,7 @@ static int ao_sun_get_property (ao_driver_t *this_gen, int property) { this->mixer_volume = info.play.gain * 100 / AUDIO_MAX_GAIN; } return this->mixer_volume; -#if !defined(__NetBSD__) /* audio_info.output_muted is missing on NetBSD */ +#ifdef HAVE_AUDIO_INFO_T_OUTPUT_MUTED case AO_PROP_MUTE_VOL: if (ioctl(this->audio_fd, AUDIO_GETINFO, &info) < 0) return 0; @@ -836,7 +836,7 @@ static int ao_sun_set_property (ao_driver_t *this_gen, int property, int value) if (ioctl(this->audio_fd, AUDIO_SETINFO, &info) < 0) return ~value; return value; -#if !defined(__NetBSD__) /* audio_info.output_muted is missing on NetBSD */ +#ifdef HAVE_AUDIO_INFO_T_OUTPUT_MUTED case AO_PROP_MUTE_VOL: info.output_muted = value != 0; if (ioctl(this->audio_fd, AUDIO_SETINFO, &info) < 0) |