diff options
author | Pierre Ossman <ossman@cendio.se> | 2006-06-19 16:39:28 +0000 |
---|---|---|
committer | Pierre Ossman <ossman@cendio.se> | 2006-06-19 16:39:28 +0000 |
commit | c6d4cc0af9497a4376fa1dcb33a28c9a54264109 (patch) | |
tree | 720ad398846c3a67fef47f6d1572d65fca88ff79 /src/utils | |
parent | 40494c3bc1f109b0d0d2e9e04cda814e9856ff1f (diff) |
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
Diffstat (limited to 'src/utils')
-rw-r--r-- | src/utils/padsp.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/utils/padsp.c b/src/utils/padsp.c index e25fdfd8..56acbb28 100644 --- a/src/utils/padsp.c +++ b/src/utils/padsp.c @@ -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); |