aboutsummaryrefslogtreecommitdiffstats
path: root/src/output_control.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/output_control.c')
-rw-r--r--src/output_control.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/output_control.c b/src/output_control.c
index f6ff6347a..10ad0df51 100644
--- a/src/output_control.c
+++ b/src/output_control.c
@@ -107,6 +107,8 @@ audio_output_signal(struct audio_output *ao)
void audio_output_play(struct audio_output *audioOutput,
const char *playChunk, size_t size)
{
+ assert(size > 0);
+
if (!audioOutput->open)
return;