[vlc-commits] PulseAudio: print context infos as debug messages
Rémi Denis-Courmont
git at videolan.org
Wed Jul 20 21:54:43 CEST 2011
vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Wed Jul 20 22:54:22 2011 +0300| [3289ce810c2d234ab2ef3e65c3736b64c2a9335a] | committer: Rémi Denis-Courmont
PulseAudio: print context infos as debug messages
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=3289ce810c2d234ab2ef3e65c3736b64c2a9335a
---
src/pulse/mainloop.c | 12 +++++++++++-
1 files changed, 11 insertions(+), 1 deletions(-)
diff --git a/src/pulse/mainloop.c b/src/pulse/mainloop.c
index df0c851..5dc9c63 100644
--- a/src/pulse/mainloop.c
+++ b/src/pulse/mainloop.c
@@ -23,7 +23,7 @@
# include "config.h"
#endif
-#define MODULE_STRING "vlcpulse"
+#define MODULE_STRING "pulse"
#include <vlc_common.h>
#include <pulse/pulseaudio.h>
@@ -170,6 +170,10 @@ pa_context *vlc_pa_connect (vlc_object_t *obj)
if (unlikely(mainloop == NULL))
return NULL;
+ msg_Dbg (obj, "using library version %s", pa_get_library_version ());
+ msg_Dbg (obj, " (compiled with version %s, protocol %u)",
+ pa_get_headers_version (), PA_PROTOCOL_VERSION);
+
char *ua = var_InheritString (obj, "user-agent");
pa_context *ctx;
@@ -188,6 +192,12 @@ pa_context *vlc_pa_connect (vlc_object_t *obj)
pa_context_unref (ctx);
goto fail;
}
+ msg_Dbg (obj, "connected %s to %s as client #%"PRIu32,
+ pa_context_is_local (ctx) ? "locally" : "remotely",
+ pa_context_get_server (ctx), pa_context_get_index (ctx));
+ msg_Dbg (obj, "using protocol %"PRIu32", server protocol %"PRIu32,
+ pa_context_get_protocol_version (ctx),
+ pa_context_get_server_protocol_version (ctx));
pa_threaded_mainloop_unlock (mainloop);
return ctx;
More information about the vlc-commits
mailing list