channel.c: Fix invalid reference in conditionaled out code.
ASTERISK-27289 Change-Id: I7a415948116493050614d9f4fa91ffbe0c21ec4c
This commit is contained in:
parent
9cb5899781
commit
08e67f814b
|
@ -4060,7 +4060,7 @@ static struct ast_frame *__ast_read(struct ast_channel *chan, int dropaudio, int
|
|||
}
|
||||
#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) {
|
||||
|
@ -5203,7 +5203,7 @@ int ast_write_stream(struct ast_channel *chan, int stream_num, struct ast_frame
|
|||
}
|
||||
#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) {
|
||||
|
|
Loading…
Reference in New Issue