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_mvp.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_mvp.c')
-rw-r--r-- | src/audioOutputs/audioOutput_mvp.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/src/audioOutputs/audioOutput_mvp.c b/src/audioOutputs/audioOutput_mvp.c index 2b80a3251..9ffdd4fdf 100644 --- a/src/audioOutputs/audioOutput_mvp.c +++ b/src/audioOutputs/audioOutput_mvp.c @@ -208,7 +208,6 @@ static int mvp_openDevice(struct audio_output *audioOutput, mvp_setPcmParams(md, audioFormat->sampleRate, audioFormat->channels, 1, audioFormat->bits); #endif - audioOutput->open = 1; return 0; } @@ -218,7 +217,6 @@ static void mvp_closeDevice(struct audio_output *audioOutput) if (md->fd >= 0) close(md->fd); md->fd = -1; - audioOutput->open = 0; } static void mvp_dropBufferedAudio(struct audio_output *audioOutput) |