X-Git-Url: http://git.eversberg.eu/gitweb.cgi?p=lcr.git;a=blobdiff_plain;f=chan_lcr.c;h=7269a0ff38bc5f0bf976928155279912bcd9a3c4;hp=239d11e10740aebe5ff51e1c350f780066a13638;hb=e9dd99a40139791057444e745591e3568b34a445;hpb=77bacac2bd6eaeb33b280458e0839b772f9ad18c diff --git a/chan_lcr.c b/chan_lcr.c index 239d11e..7269a0f 100644 --- a/chan_lcr.c +++ b/chan_lcr.c @@ -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)) {