diff options
author | Richard Mudgett <rmudgett@digium.com> | 2017-09-25 10:59:17 -0500 |
---|---|---|
committer | Richard Mudgett <rmudgett@digium.com> | 2017-09-25 11:22:26 -0500 |
commit | 787fd967094a2fd9138dd8e11586250847a02c4b (patch) | |
tree | 7872a339ba8f3a85f25b8abaa58111bde72af2bc | |
parent | 875568c0f9c8d6f6c317e6a34fd7d87196e05aee (diff) |
channel.c: Fix invalid reference in conditionaled out code.
ASTERISK-27289
Change-Id: I7a415948116493050614d9f4fa91ffbe0c21ec4c
-rw-r--r-- | main/channel.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/main/channel.c b/main/channel.c index 3e5674a05..970d81373 100644 --- a/main/channel.c +++ b/main/channel.c @@ -4293,7 +4293,7 @@ static struct ast_frame *__ast_read(struct ast_channel *chan, int dropaudio) } #else int jump = calc_monitor_jump((ast_channel_outsmpl(chan) - ast_channel_insmpl(chan)), - ast_format_get_sample_rate(f->subclass.codec), + ast_format_get_sample_rate(f->subclass.format), ast_format_get_sample_rate(ast_channel_monitor(chan)->read_stream->fmt->format)); if (jump - MONITOR_DELAY >= 0) { if (ast_seekstream(ast_channel_monitor(chan)->read_stream, jump - f->samples, SEEK_FORCECUR) == -1) { @@ -5375,7 +5375,7 @@ int ast_write(struct ast_channel *chan, struct ast_frame *fr) } #else int jump = calc_monitor_jump((ast_channel_insmpl(chan) - ast_channel_outsmpl(chan)), - ast_format_get_sample_rate(f->subclass.codec), + ast_format_get_sample_rate(f->subclass.format), ast_format_get_sample_rate(ast_channel_monitor(chan)->read_stream->fmt->format)); if (jump - MONITOR_DELAY >= 0) { if (ast_seekstream(ast_channel_monitor(chan)->write_stream, jump - cur->samples, SEEK_FORCECUR) == -1) { |