summaryrefslogtreecommitdiffstats
path: root/audio_out.c
diff options
context:
space:
mode:
Diffstat (limited to 'audio_out.c')
-rw-r--r--audio_out.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/audio_out.c b/audio_out.c
index a0bad83..13a71a5 100644
--- a/audio_out.c
+++ b/audio_out.c
@@ -380,10 +380,19 @@ static int audio_out_remove_audio_effect(const struct audio_stream *stream, effe
void audio_hw_close_output_stream(struct audio_hw_device *dev,
struct audio_stream_out *stream)
{
+ struct tinyalsa_audio_device *tinyalsa_audio_device;
+
LOGD("%s(%p)", __func__, stream);
if(stream != NULL)
free(stream);
+
+ if(dev == NULL)
+ return;
+
+ tinyalsa_audio_device = (struct tinyalsa_audio_device *) dev;
+
+ tinyalsa_audio_device->stream_out = NULL;
}
int audio_hw_open_output_stream(struct audio_hw_device *dev,