From: Marc-André Lureau Date: Fri, 13 Feb 2009 13:09:16 +0000 (+0200) Subject: bluetooth: print SBC encoder implementation info X-Git-Tag: v0.9.15-test3~48^2^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=38ded3bb31bc49664641965f856a35f432a8a956;p=platform%2Fupstream%2Fpulseaudio.git bluetooth: print SBC encoder implementation info The encoder initialization is done lazily, so we can only get the information once encoding start. This is abit annoying.. --- diff --git a/src/modules/bluetooth/module-bluetooth-device.c b/src/modules/bluetooth/module-bluetooth-device.c index 748a2d4..b8f6729 100644 --- a/src/modules/bluetooth/module-bluetooth-device.c +++ b/src/modules/bluetooth/module-bluetooth-device.c @@ -904,6 +904,11 @@ static int a2dp_process_render(struct userdata *u) { (void*) p, u->write_memchunk.length, d, left, &written); + + PA_ONCE_BEGIN { + pa_log_debug("Using SBC encoder implementation: %s", pa_strnull(sbc_get_implementation_info(&a2dp->sbc))); + } PA_ONCE_END; + pa_memblock_release(u->write_memchunk.memblock); if (encoded <= 0) {