mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-04-26 04:27:25 +00:00
autoflush these channels that use queues
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@13057 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
parent
bd4356aaac
commit
b7775547b3
@ -623,8 +623,9 @@ static switch_status_t channel_read_frame(switch_core_session_t *session, switch
|
|||||||
return SWITCH_STATUS_FALSE;
|
return SWITCH_STATUS_FALSE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!switch_queue_size(tech_pvt->frame_queue)) {
|
||||||
switch_core_timer_next(&tech_pvt->timer);
|
switch_core_timer_next(&tech_pvt->timer);
|
||||||
|
}
|
||||||
|
|
||||||
if (switch_queue_trypop(tech_pvt->frame_queue, &pop) == SWITCH_STATUS_SUCCESS && pop) {
|
if (switch_queue_trypop(tech_pvt->frame_queue, &pop) == SWITCH_STATUS_SUCCESS && pop) {
|
||||||
if (tech_pvt->read_frame) {
|
if (tech_pvt->read_frame) {
|
||||||
|
@ -548,8 +548,10 @@ static switch_status_t channel_read_frame(switch_core_session_t *session, switch
|
|||||||
goto end;
|
goto end;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!switch_queue_size(tech_pvt->frame_queue)) {
|
||||||
switch_core_timer_next(&tech_pvt->timer);
|
switch_core_timer_next(&tech_pvt->timer);
|
||||||
|
}
|
||||||
|
|
||||||
if (switch_queue_trypop(tech_pvt->frame_queue, &pop) == SWITCH_STATUS_SUCCESS && pop) {
|
if (switch_queue_trypop(tech_pvt->frame_queue, &pop) == SWITCH_STATUS_SUCCESS && pop) {
|
||||||
if (tech_pvt->write_frame) {
|
if (tech_pvt->write_frame) {
|
||||||
switch_frame_free(&tech_pvt->write_frame);
|
switch_frame_free(&tech_pvt->write_frame);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user