mirror of
https://github.com/mpv-player/mpv
synced 2025-03-19 09:57:34 +00:00
Move common ioctl outside of ifdef
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@23354 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
2764ff21db
commit
29362964bb
@ -651,12 +651,11 @@ static int get_space(void){
|
|||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if !defined (__OpenBSD__) && !defined(__NetBSD__)
|
|
||||||
ioctl(audio_fd, AUDIO_GETINFO, &info);
|
ioctl(audio_fd, AUDIO_GETINFO, &info);
|
||||||
|
#if !defined (__OpenBSD__) && !defined(__NetBSD__)
|
||||||
if (queued_bursts - info.play.eof > 2)
|
if (queued_bursts - info.play.eof > 2)
|
||||||
return 0;
|
return 0;
|
||||||
#else
|
#else
|
||||||
ioctl(audio_fd, AUDIO_GETINFO, &info);
|
|
||||||
return info.hiwat * info.blocksize - info.play.seek;
|
return info.hiwat * info.blocksize - info.play.seek;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user