Merge "chan_oss.c: Fix format ref leak in oss_read()." into 13

changes/98/4798/2
zuul 9 years ago committed by Gerrit Code Review
commit e51193bf72

@ -727,7 +727,7 @@ static struct ast_frame *oss_read(struct ast_channel *c)
return f;
/* ok we can build and deliver the frame to the caller */
f->frametype = AST_FRAME_VOICE;
f->subclass.format = ao2_bump(ast_format_slin);
f->subclass.format = ast_format_slin;
f->samples = FRAME_SIZE;
f->datalen = FRAME_SIZE * 2;
f->data.ptr = o->oss_read_buf + AST_FRIENDLY_OFFSET;

Loading…
Cancel
Save