summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorTanu Kaskinen <tanuk@iki.fi>2012-04-28 18:54:11 +0300
committerTanu Kaskinen <tanuk@iki.fi>2012-10-30 16:16:03 +0200
commit9bcb9f1a62bf25a24b97fc34aef55eca10202344 (patch)
tree53a0e0c4e026677286c4af4966a8949fb5b6a4a5 /src
parenta8e7d8bc2c97be1d99546d8229b84f407b6f2d26 (diff)
memblockq: Fix the order of setting minreq and prebuf.
Diffstat (limited to 'src')
-rw-r--r--src/pulsecore/memblockq.c2
-rw-r--r--src/pulsecore/memblockq.h4
2 files changed, 3 insertions, 3 deletions
diff --git a/src/pulsecore/memblockq.c b/src/pulsecore/memblockq.c
index 18066f77..23bb7721 100644
--- a/src/pulsecore/memblockq.c
+++ b/src/pulsecore/memblockq.c
@@ -936,8 +936,8 @@ void pa_memblockq_apply_attr(pa_memblockq *bq, const pa_buffer_attr *a) {
pa_memblockq_set_maxlength(bq, a->maxlength);
pa_memblockq_set_tlength(bq, a->tlength);
- pa_memblockq_set_prebuf(bq, a->prebuf);
pa_memblockq_set_minreq(bq, a->minreq);
+ pa_memblockq_set_prebuf(bq, a->prebuf);
}
void pa_memblockq_get_attr(pa_memblockq *bq, pa_buffer_attr *a) {
diff --git a/src/pulsecore/memblockq.h b/src/pulsecore/memblockq.h
index 08c0bf04..83a54152 100644
--- a/src/pulsecore/memblockq.h
+++ b/src/pulsecore/memblockq.h
@@ -164,8 +164,8 @@ int64_t pa_memblockq_get_write_index(pa_memblockq *bq);
/* Change metrics. Always call in order. */
void pa_memblockq_set_maxlength(pa_memblockq *memblockq, size_t maxlength); /* might modify tlength, prebuf, minreq too */
void pa_memblockq_set_tlength(pa_memblockq *memblockq, size_t tlength); /* might modify minreq, too */
-void pa_memblockq_set_prebuf(pa_memblockq *memblockq, size_t prebuf); /* might modify minreq, too */
-void pa_memblockq_set_minreq(pa_memblockq *memblockq, size_t minreq);
+void pa_memblockq_set_minreq(pa_memblockq *memblockq, size_t minreq); /* might modify prebuf, too */
+void pa_memblockq_set_prebuf(pa_memblockq *memblockq, size_t prebuf);
void pa_memblockq_set_maxrewind(pa_memblockq *memblockq, size_t maxrewind); /* Set the maximum history size */
void pa_memblockq_set_silence(pa_memblockq *memblockq, pa_memchunk *silence);