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_jack.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 'src/audioOutputs/audioOutput_jack.c')
-rw-r--r-- | src/audioOutputs/audioOutput_jack.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/audioOutputs/audioOutput_jack.c b/src/audioOutputs/audioOutput_jack.c index 99b9cdf8b..46b879f64 100644 --- a/src/audioOutputs/audioOutput_jack.c +++ b/src/audioOutputs/audioOutput_jack.c @@ -363,22 +363,19 @@ static int jack_openDevice(struct audio_output *audioOutput, if (jd->client == NULL && connect_jack(audioOutput, audio_format) < 0) { freeJackClient(jd); - audioOutput->open = 0; return -1; } set_audioformat(audioOutput, audio_format); - audioOutput->open = 1; DEBUG("jack_openDevice (pid=%d)!\n", getpid ()); return 0; } -static void jack_closeDevice(struct audio_output *audioOutput) +static void jack_closeDevice(mpd_unused struct audio_output *audioOutput) { /*jack_finishDriver(audioOutput);*/ - audioOutput->open = 0; DEBUG("jack_closeDevice (pid=%d)\n", getpid()); } |