mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-10-29 05:40:23 -04:00
Handle clients that just want to set fragment size (and not count).
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1030 fefdeb5f-60dc-0310-8127-8f9354f1896f
This commit is contained in:
parent
40494c3bc1
commit
c6d4cc0af9
1 changed files with 5 additions and 1 deletions
|
|
@ -1839,7 +1839,11 @@ static int dsp_ioctl(fd_info *i, unsigned long request, void*argp, int *_errno)
|
|||
|
||||
i->fragment_size = 1 << (*(int*) argp);
|
||||
i->n_fragments = (*(int*) argp) >> 16;
|
||||
|
||||
|
||||
/* 0x7FFF means that we can set whatever we like */
|
||||
if (i->n_fragments == 0x7FFF)
|
||||
i->n_fragments = 12;
|
||||
|
||||
free_streams(i);
|
||||
|
||||
pa_threaded_mainloop_unlock(i->mainloop);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue