mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-04-16 08:49:01 +00:00
skypopen: fixed a demented bug (incrementing a variable zeroed in the same loop) maybe responsible for moh sputtering under load on virtual machines
This commit is contained in:
parent
9aa5c5b9b1
commit
43eeeb82a8
@ -857,6 +857,7 @@ static switch_status_t channel_read_frame(switch_core_session_t *session, switch
|
|||||||
switch_core_timer_next(&tech_pvt->timer_read);
|
switch_core_timer_next(&tech_pvt->timer_read);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
try = 0;
|
||||||
read:
|
read:
|
||||||
|
|
||||||
|
|
||||||
@ -871,7 +872,6 @@ static switch_status_t channel_read_frame(switch_core_session_t *session, switch
|
|||||||
}
|
}
|
||||||
switch_mutex_unlock(tech_pvt->mutex_audio_srv);
|
switch_mutex_unlock(tech_pvt->mutex_audio_srv);
|
||||||
|
|
||||||
try = 0;
|
|
||||||
if (!bytes_read) {
|
if (!bytes_read) {
|
||||||
switch_sleep(1000); //XXX don't like this
|
switch_sleep(1000); //XXX don't like this
|
||||||
try++;
|
try++;
|
||||||
@ -879,7 +879,7 @@ static switch_status_t channel_read_frame(switch_core_session_t *session, switch
|
|||||||
DEBUGA_SKYPE("skypopen_audio_read going back to read\n", SKYPOPEN_P_LOG);
|
DEBUGA_SKYPE("skypopen_audio_read going back to read\n", SKYPOPEN_P_LOG);
|
||||||
goto read;
|
goto read;
|
||||||
}
|
}
|
||||||
WARNINGA("skypopen_audio_read Silence\n", SKYPOPEN_P_LOG);
|
DEBUGA_SKYPE("skypopen_audio_read Silence\n", SKYPOPEN_P_LOG);
|
||||||
memset(tech_pvt->read_frame.data, 255, BYTES_PER_FRAME);
|
memset(tech_pvt->read_frame.data, 255, BYTES_PER_FRAME);
|
||||||
tech_pvt->read_frame.datalen = BYTES_PER_FRAME;
|
tech_pvt->read_frame.datalen = BYTES_PER_FRAME;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user