From a44c9616a8ef9302d80ec72d1287dfe38a12b694 Mon Sep 17 00:00:00 2001 From: reimar Date: Sat, 3 Nov 2007 10:35:03 +0000 Subject: Make sink variable local, it is only used in one place git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24947 b3059339-0415-0410-9bf9-f77b7e298cf2 --- libao2/ao_pulse.c | 4 +--- 1 file changed, 1 insertion(+), 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, ":"); -- cgit v1.2.3