[polypaudio-commits] r1030 - /trunk/src/utils/padsp.c
svnmailer-noreply at 0pointer.de
svnmailer-noreply at 0pointer.de
Mon Jun 19 09:39:29 PDT 2006
Author: ossman
Date: Mon Jun 19 18:39:28 2006
New Revision: 1030
URL: http://0pointer.de/cgi-bin/viewcvs.cgi?rev=1030&root=polypaudio&view=rev
Log:
Handle clients that just want to set fragment size (and not count).
Modified:
trunk/src/utils/padsp.c
Modified: trunk/src/utils/padsp.c
URL: http://0pointer.de/cgi-bin/viewcvs.cgi/trunk/src/utils/padsp.c?rev=1030&root=polypaudio&r1=1029&r2=1030&view=diff
==============================================================================
--- trunk/src/utils/padsp.c (original)
+++ trunk/src/utils/padsp.c Mon Jun 19 18:39:28 2006
@@ -1839,7 +1839,11 @@
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);
More information about the pulseaudio-commits
mailing list