Changeset 5696


Ignore:
Timestamp:
Nov 16, 2017 1:25:04 PM (6 years ago)
Author:
riza
Message:

Re #2059 (misc): Set conference's port rx_level to 0 when get frames from the
port is skipped. Thanks to Kal Conley for the original patch.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjmedia/src/pjmedia/conference.c

    r5687 r5696  
    18561856            status = pjmedia_delay_buf_get(conf_port->delay_buf, 
    18571857                                  (pj_int16_t*)frame->buf); 
    1858             if (status != PJ_SUCCESS) 
     1858            if (status != PJ_SUCCESS) { 
     1859                conf_port->rx_level = 0; 
    18591860                continue; 
     1861            }            
    18601862 
    18611863        } else { 
     
    18771879                conf_port->rx_setting = PJMEDIA_PORT_DISABLE; 
    18781880                 */ 
     1881                conf_port->rx_level = 0; 
    18791882                continue; 
    18801883            } 
    18811884 
    18821885            /* Check that the port is not removed when we call get_frame() */ 
    1883             if (conf->ports[i] == NULL) 
     1886            if (conf->ports[i] == NULL) { 
     1887                conf_port->rx_level = 0; 
    18841888                continue; 
     1889            } 
     1890                 
    18851891 
    18861892            /* Ignore if we didn't get any frame */ 
    1887             if (frame_type != PJMEDIA_FRAME_TYPE_AUDIO) 
     1893            if (frame_type != PJMEDIA_FRAME_TYPE_AUDIO) { 
     1894                conf_port->rx_level = 0; 
    18881895                continue; 
     1896            }            
    18891897        } 
    18901898 
Note: See TracChangeset for help on using the changeset viewer.