From f744aadb776dc8269ae6f4cc54c239c548e19a49 Mon Sep 17 00:00:00 2001 From: wm4 Date: Wed, 10 Sep 2014 23:12:07 +0200 Subject: ao_pulse: dump library version etc. Might help with debugging. Unfortunately, there doesn't seem to be a way to get the actual pulseaudio server version. --- audio/out/ao_pulse.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/audio/out/ao_pulse.c b/audio/out/ao_pulse.c index 487b706c1b..790ecb23dc 100644 --- a/audio/out/ao_pulse.c +++ b/audio/out/ao_pulse.c @@ -295,6 +295,12 @@ static int init(struct ao *ao) goto fail; } + MP_VERBOSE(ao, "Library version: %s\n", pa_get_library_version()); + MP_VERBOSE(ao, "Proto: %lu\n", + (long)pa_context_get_protocol_version(priv->context)); + MP_VERBOSE(ao, "Server proto: %lu\n", + (long)pa_context_get_server_protocol_version(priv->context)); + pa_context_set_state_callback(priv->context, context_state_cb, ao); if (pa_context_connect(priv->context, host, 0, NULL) < 0) -- cgit v1.2.3