mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-06-07 21:44:51 +00:00
FS-7513: revert
This commit is contained in:
parent
5755b7849e
commit
e7ab257c45
@ -1595,6 +1595,7 @@ static void *SWITCH_THREAD_FUNC conference_video_muxing_write_thread_run(switch_
|
|||||||
{
|
{
|
||||||
conference_member_t *member = (conference_member_t *) obj;
|
conference_member_t *member = (conference_member_t *) obj;
|
||||||
void *pop;
|
void *pop;
|
||||||
|
int loops = 0;
|
||||||
|
|
||||||
while(switch_test_flag(member, MFLAG_RUNNING) || switch_queue_size(member->mux_out_queue)) {
|
while(switch_test_flag(member, MFLAG_RUNNING) || switch_queue_size(member->mux_out_queue)) {
|
||||||
switch_frame_t *frame;
|
switch_frame_t *frame;
|
||||||
@ -1603,6 +1604,12 @@ static void *SWITCH_THREAD_FUNC conference_video_muxing_write_thread_run(switch_
|
|||||||
if (switch_queue_pop(member->mux_out_queue, &pop) == SWITCH_STATUS_SUCCESS) {
|
if (switch_queue_pop(member->mux_out_queue, &pop) == SWITCH_STATUS_SUCCESS) {
|
||||||
if (!pop) continue;
|
if (!pop) continue;
|
||||||
|
|
||||||
|
if (loops == 0 || loops == 50) {
|
||||||
|
switch_core_media_gen_key_frame(member->session);
|
||||||
|
switch_core_session_request_video_refresh(member->session);
|
||||||
|
}
|
||||||
|
loops++;
|
||||||
|
|
||||||
frame = (switch_frame_t *) pop;
|
frame = (switch_frame_t *) pop;
|
||||||
if (switch_test_flag(frame, SFF_ENCODED)) {
|
if (switch_test_flag(frame, SFF_ENCODED)) {
|
||||||
switch_core_session_write_encoded_video_frame(member->session, frame, 0, 0);
|
switch_core_session_write_encoded_video_frame(member->session, frame, 0, 0);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user