mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-07 13:30:03 -05:00
TIOCINQ isn't present on all systems.
git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/lennart@1781 fefdeb5f-60dc-0310-8127-8f9354f1896f
This commit is contained in:
parent
e1766011ca
commit
028632fd57
1 changed files with 3 additions and 1 deletions
|
|
@ -98,9 +98,11 @@ static int sink_process_msg(pa_msgobject *o, int code, void *data, int64_t offse
|
|||
case PA_SINK_MESSAGE_GET_LATENCY: {
|
||||
size_t n = 0;
|
||||
int l;
|
||||
|
||||
|
||||
#ifdef TIOCINQ
|
||||
if (ioctl(u->fd, TIOCINQ, &l) >= 0 && l > 0)
|
||||
n = (size_t) l;
|
||||
#endif
|
||||
|
||||
n += u->memchunk.length;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue