Changeset 3072 for pjproject/trunk


Ignore:
Timestamp:
Jan 25, 2010 5:14:44 PM (15 years ago)
Author:
nanang
Message:

Misc (#1026): missed PLC availability check in stream get_frame_ext().

File:
1 edited

Legend:

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

    r3067 r3072  
    591591 
    592592        } else { 
    593             status = (*stream->codec->op->recover)(stream->codec, 
    594                                                    0, frame); 
    595             if (status != PJ_SUCCESS) { 
     593 
     594            /* Try to generate frame by invoking PLC (when any) */ 
     595            status = PJ_SUCCESS; 
     596            if (stream->codec->op->recover) { 
     597                status = (*stream->codec->op->recover)(stream->codec, 
     598                                                       0, frame); 
     599            } 
     600             
     601            /* No PLC or PLC failed */ 
     602            if (!stream->codec->op->recover || status != PJ_SUCCESS) { 
    596603                pjmedia_frame_ext_append_subframe(f, NULL, 0, 
    597604                                            (pj_uint16_t)samples_per_frame); 
Note: See TracChangeset for help on using the changeset viewer.