mirror of
https://github.com/mpv-player/mpv
synced 2025-04-19 05:37:26 +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);
|
ioctl(audio_fd, AUDIO_GETINFO, &info);
|
||||||
if (queued_bursts - info.play.eof > 2)
|
if (queued_bursts - info.play.eof > 2)
|
||||||
return 0;
|
return 0;
|
||||||
#endif
|
#else
|
||||||
|
|
||||||
#if defined(__NetBSD__) || defined(__OpenBSD__)
|
|
||||||
ioctl(audio_fd, AUDIO_GETINFO, &info);
|
ioctl(audio_fd, AUDIO_GETINFO, &info);
|
||||||
return info.hiwat * info.blocksize - info.play.seek;
|
return info.hiwat * info.blocksize - info.play.seek;
|
||||||
#else
|
|
||||||
return ao_data.outburst;
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user