From d96bd0eaa8fcee6e587ae6ffdf73bfa5e995c4b5 Mon Sep 17 00:00:00 2001 From: wm4 Date: Tue, 18 Nov 2014 12:49:31 +0100 Subject: audio/out: always log retrieved audio device size --- audio/out/ao.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/audio/out/ao.c b/audio/out/ao.c index 4a09ec0615..f0461b8c09 100644 --- a/audio/out/ao.c +++ b/audio/out/ao.c @@ -236,10 +236,10 @@ static int ao_init(struct ao *ao) } ao->bps = ao->samplerate * ao->sstride; - if (!ao->device_buffer && ao->driver->get_space) { + if (!ao->device_buffer && ao->driver->get_space) ao->device_buffer = ao->driver->get_space(ao); + if (ao->device_buffer) MP_VERBOSE(ao, "device buffer: %d samples.\n", ao->device_buffer); - } ao->buffer = MPMAX(ao->device_buffer, ao->def_buffer * ao->samplerate); MP_VERBOSE(ao, "using soft-buffer of %d samples.\n", ao->buffer); -- cgit v1.2.3