summaryrefslogtreecommitdiffstats
path: root/libao2
diff options
context:
space:
mode:
Diffstat (limited to 'libao2')
-rw-r--r--libao2/ao_pulse.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/libao2/ao_pulse.c b/libao2/ao_pulse.c
index 3064ed517b..6f62d1df6c 100644
--- a/libao2/ao_pulse.c
+++ b/libao2/ao_pulse.c
@@ -39,9 +39,6 @@ static ao_info_t info = {
""
};
-/** The sink to connect to */
-static char *sink;
-
/** PulseAudio playback stream object */
static struct pa_stream *stream;
@@ -126,6 +123,7 @@ static int init(int rate_hz, int channels, int format, int flags) {
struct pa_channel_map map;
const struct format_map_s *fmt_map;
char *host = NULL;
+ char *sink = NULL;
if (ao_subdevice) {
int i = strcspn(ao_subdevice, ":");