decoder_api: added assertion on partial frames
Decoder plugins must not send partial frames.
This commit is contained in:
parent
953b258e5e
commit
da6f8c270a
@ -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 ||
|
||||
|
Loading…
Reference in New Issue
Block a user