diff options
author | Max Kellermann <max@duempel.org> | 2008-09-24 07:20:36 +0200 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2008-09-24 07:20:36 +0200 |
commit | 2403d32a5007572f853c7782957f86aedf3d3aff (patch) | |
tree | fe25886d65f49f3c18cd306a7ee4a94aeea3d24e /src/audioOutputs/audioOutput_pulse.c | |
parent | 3cae6856b8c6096b3f932a4ab30476a8d1187e58 (diff) | |
download | mpd-2403d32a5007572f853c7782957f86aedf3d3aff.tar.gz mpd-2403d32a5007572f853c7782957f86aedf3d3aff.tar.xz mpd-2403d32a5007572f853c7782957f86aedf3d3aff.zip |
output: set audio_output->open=1 in audio_output_task()
Since the output plugin returns a value indicating success or error,
we can have the output core code assign the "open" flag.
Diffstat (limited to '')
-rw-r--r-- | src/audioOutputs/audioOutput_pulse.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/src/audioOutputs/audioOutput_pulse.c b/src/audioOutputs/audioOutput_pulse.c index 3892b5a25..8e477a2de 100644 --- a/src/audioOutputs/audioOutput_pulse.c +++ b/src/audioOutputs/audioOutput_pulse.c @@ -149,7 +149,6 @@ static int pulse_openDevice(struct audio_output *audioOutput, } pd->connAttempts = 0; - audioOutput->open = 1; DEBUG("PulseAudio output \"%s\" connected and playing %i bit, %i " "channel audio at %i Hz\n", audioOutput->name, audioFormat->bits, @@ -178,8 +177,6 @@ static void pulse_closeDevice(struct audio_output *audioOutput) pa_simple_drain(pd->s, NULL); pa_simple_free(pd->s); } - - audioOutput->open = 0; } static int pulse_playAudio(struct audio_output *audioOutput, |