chan_lcr: Minor fix for Asterisk versions >= 10

subclass.codec or subclass is not part of frame anymore.
This commit is contained in:
Andreas Eversberg 2012-01-03 11:29:43 +01:00
parent 77bacac2bd
commit e9dd99a401
1 changed files with 2 additions and 0 deletions

View File

@ -2583,12 +2583,14 @@ static int lcr_write(struct ast_channel *ast, struct ast_frame *fr)
struct chan_call *call;
struct ast_frame * f = fr;
#if ASTERISK_VERSION_NUM < 100000
#ifdef AST_1_8_OR_HIGHER
if (!f->subclass.codec)
#else
if (!f->subclass)
#endif
CDEBUG(NULL, ast, "No subclass\n");
#endif
#ifdef AST_1_8_OR_HIGHER
#if ASTERISK_VERSION_NUM < 100000
if (!(f->subclass.codec & ast->nativeformats)) {