Changeset 1637 for pjproject


Ignore:
Timestamp:
Dec 22, 2007 7:43:45 AM (17 years ago)
Author:
bennylp
Message:

Fixed bug caused by ticket #427: frame type not properly initialized to PJMEDIA_FRAME_TYPE_AUDIO, causing audio frames to be dropped in the conference bridge (thanks P.J. Cast)

File:
1 edited

Legend:

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

    r1624 r1637  
    12811281    } else { 
    12821282 
    1283         /* Initialize frame type to None */ 
    1284         *type = PJMEDIA_FRAME_TYPE_NONE; 
     1283        /* Initialize frame type */ 
     1284        if (cport->rx_buf_count == 0) { 
     1285            *type = PJMEDIA_FRAME_TYPE_NONE; 
     1286        } else { 
     1287            /* we got some samples in the buffer */ 
     1288            *type = PJMEDIA_FRAME_TYPE_AUDIO; 
     1289        } 
    12851290 
    12861291        /* 
Note: See TracChangeset for help on using the changeset viewer.