projects
/
lcr.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
77bacac
)
chan_lcr: Minor fix for Asterisk versions >= 10
author
Andreas Eversberg
<jolly@eversberg.eu>
Tue, 3 Jan 2012 10:29:43 +0000
(11:29 +0100)
committer
Andreas Eversberg
<jolly@eversberg.eu>
Tue, 3 Jan 2012 10:29:43 +0000
(11:29 +0100)
subclass.codec or subclass is not part of frame anymore.
chan_lcr.c
patch
|
blob
|
history
diff --git
a/chan_lcr.c
b/chan_lcr.c
index
239d11e
..
7269a0f
100644
(file)
--- 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)) {