chan_dect: return ast_null_frame from dect_read() and print a warning
dect_read() should not be called since audio is queued when available through dect_dl_u_data_ind(). Return ast_null_frame so the core won't hang up the channel and print a warning. Signed-off-by: Patrick McHardy <kaber@trash.net>
This commit is contained in:
parent
b7347a56f8
commit
71ee4dc26f
|
@ -865,8 +865,8 @@ static int dect_write(struct ast_channel *chan, struct ast_frame *f)
|
|||
|
||||
static struct ast_frame *dect_read(struct ast_channel *chan)
|
||||
{
|
||||
ast_log(LOG_NOTICE, "read\n");
|
||||
return NULL;
|
||||
ast_log(LOG_NOTICE, "audio underrun?\n");
|
||||
return &ast_null_frame;
|
||||
}
|
||||
|
||||
static int dect_fixup(struct ast_channel *old, struct ast_channel *new)
|
||||
|
|
Reference in New Issue