diff options
author | Tanu Kaskinen <tanu.kaskinen@digia.com> | 2011-09-29 18:54:03 +0300 |
---|---|---|
committer | Colin Guthrie <colin@mageia.org> | 2011-10-01 13:25:16 +0100 |
commit | 666261ece8cfa9b5458a1c1358b7ae4b9682b6a5 (patch) | |
tree | 2de67fe525e0e20363d8ef8a7e933d763717efb2 /src/modules/module-virtual-source.c | |
parent | 4d930f19f93d1823e6aa28c2b990d2ca3ff8a9ba (diff) |
memblockq: Improve debuggability by storing a name and a sample spec.
These are not used for anything at this point, but this
makes it easy to add ad-hoc debug prints that show the
memblockq name and to convert between bytes and usecs.
Diffstat (limited to 'src/modules/module-virtual-source.c')
-rw-r--r-- | src/modules/module-virtual-source.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/modules/module-virtual-source.c b/src/modules/module-virtual-source.c index 00a4b65cf..bf07580a8 100644 --- a/src/modules/module-virtual-source.c +++ b/src/modules/module-virtual-source.c @@ -548,7 +548,7 @@ int pa__init(pa_module*m) { } u->module = m; m->userdata = u; - u->memblockq = pa_memblockq_new(0, MEMBLOCKQ_MAXLENGTH, 0, pa_frame_size(&ss), 1, 1, 0, NULL); + u->memblockq = pa_memblockq_new("module-virtual-source memblockq", 0, MEMBLOCKQ_MAXLENGTH, 0, &ss, 1, 1, 0, NULL); if (!u->memblockq) { pa_log("Failed to create source memblockq."); goto fail; @@ -659,7 +659,7 @@ int pa__init(pa_module*m) { pa_proplist_setf(sink_data.proplist, PA_PROP_DEVICE_DESCRIPTION, "Uplink Sink %s on %s", sink_data.name, z ? z : master->name); } - u->sink_memblockq = pa_memblockq_new(0, MEMBLOCKQ_MAXLENGTH, 0, pa_frame_size(&ss), 1, 1, 0, NULL); + u->sink_memblockq = pa_memblockq_new("module-virtual-source sink_memblockq", 0, MEMBLOCKQ_MAXLENGTH, 0, &ss, 1, 1, 0, NULL); if (!u->sink_memblockq) { pa_sink_new_data_done(&sink_data); pa_log("Failed to create sink memblockq."); |