git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@2548
fefdeb5f-60dc-0310-8127-
8f9354f1896f
if (*tlength <= *minreq)
*tlength = *minreq*2 + frame_size;
- if (*prebuf <= 0)
+ if (*prebuf <= 0 || *prebuf > *tlength)
*prebuf = *tlength;
}
if (pa_memblockq_peek(s->memblockq, chunk) < 0) {
-/* pa_log("UNDERRUN: %lu", pa_memblockq_get_length(s->memblockq)); */
+/* pa_log("UNDERRUN: %lu", (unsigned long) pa_memblockq_get_length(s->memblockq)); */
if (s->drain_request && pa_sink_input_safe_to_remove(i)) {
s->drain_request = FALSE;