mirror of
https://github.com/mpv-player/mpv
synced 2025-03-25 04:38:01 +00:00
Clean up some unused code and #ifdef mess in ao_sun.c
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@23353 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
31a82e6b0e
commit
2764ff21db
@ -655,13 +655,9 @@ static int get_space(void){
|
||||
ioctl(audio_fd, AUDIO_GETINFO, &info);
|
||||
if (queued_bursts - info.play.eof > 2)
|
||||
return 0;
|
||||
#endif
|
||||
|
||||
#if defined(__NetBSD__) || defined(__OpenBSD__)
|
||||
#else
|
||||
ioctl(audio_fd, AUDIO_GETINFO, &info);
|
||||
return info.hiwat * info.blocksize - info.play.seek;
|
||||
#else
|
||||
return ao_data.outburst;
|
||||
#endif
|
||||
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user