diff options
Diffstat (limited to '')
-rw-r--r-- | src/output_control.c | 2 | ||||
-rw-r--r-- | src/output_thread.c | 2 |
2 files changed, 4 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; diff --git a/src/output_thread.c b/src/output_thread.c index 4209f2266..45acdd55f 100644 --- a/src/output_thread.c +++ b/src/output_thread.c @@ -65,6 +65,8 @@ static void ao_play(struct audio_output *ao) size_t size = ao->args.play.size; bool ret; + assert(size > 0); + if (!audio_format_equals(&ao->inAudioFormat, &ao->outAudioFormat)) convertAudioFormat(ao, &data, &size); |