mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-06 13:29:56 -05:00
fix playback of small sound files
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@955 fefdeb5f-60dc-0310-8127-8f9354f1896f
This commit is contained in:
parent
46fee46418
commit
440b901a4d
1 changed files with 4 additions and 2 deletions
|
|
@ -977,7 +977,7 @@ static int dsp_empty_socket(fd_info *i) {
|
||||||
for (;;) {
|
for (;;) {
|
||||||
int l;
|
int l;
|
||||||
|
|
||||||
if (i->thread_fd < 0 || !i->stream)
|
if (i->thread_fd < 0)
|
||||||
break;
|
break;
|
||||||
|
|
||||||
if (ioctl(i->thread_fd, SIOCINQ, &l) < 0) {
|
if (ioctl(i->thread_fd, SIOCINQ, &l) < 0) {
|
||||||
|
|
@ -985,8 +985,10 @@ static int dsp_empty_socket(fd_info *i) {
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!l)
|
if (!l) {
|
||||||
|
ret = 0;
|
||||||
break;
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
pa_threaded_mainloop_wait(i->mainloop);
|
pa_threaded_mainloop_wait(i->mainloop);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue