decoder_api: added assertion on partial frames

Decoder plugins must not send partial frames.
This commit is contained in:
Max Kellermann 2009-01-16 18:53:32 +01:00
parent 953b258e5e
commit da6f8c270a

View File

@ -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 ||