From 2403d32a5007572f853c7782957f86aedf3d3aff Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Wed, 24 Sep 2008 07:20:36 +0200 Subject: 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. --- src/audioOutputs/audioOutput_shout.c | 4 ---- 1 file changed, 4 deletions(-) (limited to 'src/audioOutputs/audioOutput_shout.c') diff --git a/src/audioOutputs/audioOutput_shout.c b/src/audioOutputs/audioOutput_shout.c index 835b6022d..8612cde2f 100644 --- a/src/audioOutputs/audioOutput_shout.c +++ b/src/audioOutputs/audioOutput_shout.c @@ -358,8 +358,6 @@ static void my_shout_close_device(struct audio_output *audio_output) timer_free(sd->timer); sd->timer = NULL; } - - audio_output->open = 0; } static int shout_connect(struct shout_data *sd) @@ -455,8 +453,6 @@ static int my_shout_open_device(struct audio_output *audio_output, sd->timer = timer_new(audio_format); - audio_output->open = 1; - return 0; } -- cgit v1.2.3