diff options
author | reimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2007-05-20 12:20:03 +0000 |
---|---|---|
committer | reimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2007-05-20 12:20:03 +0000 |
commit | 29362964bb7d9ff0a8bc5e668cc45ab814b89ba3 (patch) | |
tree | 6090461a344416e845e77985aa6cebd41d057ab7 | |
parent | 2764ff21dbfa5eb5c1f2f53dfdacb5d73a982110 (diff) |
Move common ioctl outside of ifdef
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@23354 b3059339-0415-0410-9bf9-f77b7e298cf2
-rw-r--r-- | libao2/ao_sun.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/libao2/ao_sun.c b/libao2/ao_sun.c index e95cbc990e..a9fab2846a 100644 --- a/libao2/ao_sun.c +++ b/libao2/ao_sun.c @@ -651,12 +651,11 @@ static int get_space(void){ } #endif -#if !defined (__OpenBSD__) && !defined(__NetBSD__) ioctl(audio_fd, AUDIO_GETINFO, &info); +#if !defined (__OpenBSD__) && !defined(__NetBSD__) if (queued_bursts - info.play.eof > 2) return 0; #else - ioctl(audio_fd, AUDIO_GETINFO, &info); return info.hiwat * info.blocksize - info.play.seek; #endif |