diff options
author | Tilghman Lesher <tilghman@meg.abyt.es> | 2009-11-04 14:05:12 +0000 |
---|---|---|
committer | Tilghman Lesher <tilghman@meg.abyt.es> | 2009-11-04 14:05:12 +0000 |
commit | d8e0c584372c51b585a52efbe2375861bc09bdcf (patch) | |
tree | dd3bc244b8a45aacb932109dc8c12d1f21769d55 /main/abstract_jb.c | |
parent | 6a50e7a031f4d424aa8bd3293aa48501f7b96652 (diff) |
Expand codec bitfield from 32 bits to 64 bits.
Reviewboard: https://reviewboard.asterisk.org/r/416/
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@227580 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'main/abstract_jb.c')
-rw-r--r-- | main/abstract_jb.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/main/abstract_jb.c b/main/abstract_jb.c index cda9a6dca..7ebbb628b 100644 --- a/main/abstract_jb.c +++ b/main/abstract_jb.c @@ -409,14 +409,14 @@ static void jb_get_and_deliver(struct ast_channel *chan) case JB_IMPL_DROP: jb_framelog("\tJB_GET {now=%ld}: %s frame with ts=%ld and len=%ld\n", now, jb_get_actions[res], f->ts, f->len); - jb->last_format = f->subclass; + jb->last_format = f->subclass.codec; ast_frfree(f); break; case JB_IMPL_INTERP: /* interpolate a frame */ f = &finterp; f->frametype = AST_FRAME_VOICE; - f->subclass = jb->last_format; + f->subclass.codec = jb->last_format; f->datalen = 0; f->samples = interpolation_len * 8; f->mallocd = 0; @@ -480,7 +480,7 @@ static int create_jb(struct ast_channel *chan, struct ast_frame *frr) jb->next = jbimpl->next(jbobj); /* Init last format for a first time. */ - jb->last_format = frr->subclass; + jb->last_format = frr->subclass.codec; /* Create a frame log file */ if (ast_test_flag(jbconf, AST_JB_LOG)) { |