Commit da6f8c27 authored by Max Kellermann's avatar Max Kellermann

decoder_api: added assertion on partial frames

Decoder plugins must not send partial frames.
parent 953b258e
......@@ -197,6 +197,7 @@ decoder_data(struct decoder *decoder,
char *data;
assert(dc.state == DECODE_STATE_DECODE);
assert(length % audio_format_frame_size(&dc.in_audio_format) == 0);
if (dc.command == DECODE_COMMAND_STOP ||
dc.command == DECODE_COMMAND_SEEK ||
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment