summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorben <benjaminfranzke@googlemail.com>2010-07-12 21:51:59 +0200
committerben <benjaminfranzke@googlemail.com>2010-07-12 21:51:59 +0200
commit3d1b440f16fd6e27944ceb0cb3d8082690ccd693 (patch)
treef74c20f3d0e9066d07e6fa97e54d8adb702b4451
parent6fca5e2cf6c600492856ad9982f27a343aac7fc0 (diff)
downloadpa-sink-ctl-3d1b440f16fd6e27944ceb0cb3d8082690ccd693.tar.gz
pa-sink-ctl-3d1b440f16fd6e27944ceb0cb3d8082690ccd693.tar.bz2
pa-sink-ctl-3d1b440f16fd6e27944ceb0cb3d8082690ccd693.zip
pulseaudio connection: just use NULL as server str
things like $PULSE_SERVER are respected now see ENVIRONMENT VARIABLES in pulseaudio(1)
-rw-r--r--src/pa-sink-ctl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pa-sink-ctl.c b/src/pa-sink-ctl.c
index a33646b..f1ce215 100644
--- a/src/pa-sink-ctl.c
+++ b/src/pa-sink-ctl.c
@@ -52,7 +52,7 @@ int main(int argc, char** argv)
// define callback for connection init
pa_context_set_state_callback(context, context_state_callback, NULL);
- if (pa_context_connect(context, "tcp:127.0.0.1:4712", PA_CONTEXT_NOAUTOSPAWN, NULL)) {
+ if (pa_context_connect(context, NULL, PA_CONTEXT_NOAUTOSPAWN, NULL)) {
printf("error: pa_context_connect() failed.\n");
}