diff options
author | wm4 <wm4@nowhere> | 2014-09-10 23:12:07 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2014-09-10 23:14:06 +0200 |
commit | f744aadb776dc8269ae6f4cc54c239c548e19a49 (patch) | |
tree | 9434b453f818f995547a78dfb086359f9b7d78f2 /audio/out/ao_pulse.c | |
parent | f790d6aafdea21e4ef5225ee6114ed8dd92d49f3 (diff) | |
download | mpv-f744aadb776dc8269ae6f4cc54c239c548e19a49.tar.bz2 mpv-f744aadb776dc8269ae6f4cc54c239c548e19a49.tar.xz |
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.
Diffstat (limited to 'audio/out/ao_pulse.c')
-rw-r--r-- | audio/out/ao_pulse.c | 6 |
1 files changed, 6 insertions, 0 deletions
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) |