Changeset 210


Ignore:
Timestamp:
Feb 21, 2006 11:43:58 PM (19 years ago)
Author:
bennylp
Message:

Added msg when stream is started/paused/resumed

File:
1 edited

Legend:

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

    r205 r210  
    662662        stream->enc->paused = 0; 
    663663        //pj_snd_stream_start(stream->enc->snd_stream); 
     664        PJ_LOG(4,(THIS_FILE, "Encoder stream started")); 
     665    } else { 
     666        PJ_LOG(4,(THIS_FILE, "Encoder stream paused")); 
    664667    } 
    665668 
     
    667670        stream->dec->paused = 0; 
    668671        //pj_snd_stream_start(stream->dec->snd_stream); 
     672        PJ_LOG(4,(THIS_FILE, "Decoder stream started")); 
     673    } else { 
     674        PJ_LOG(4,(THIS_FILE, "Decoder stream paused")); 
    669675    } 
    670676 
     
    695701    PJ_ASSERT_RETURN(stream, PJ_EINVAL); 
    696702 
    697     if ((dir & PJMEDIA_DIR_ENCODING) && stream->enc) 
     703    if ((dir & PJMEDIA_DIR_ENCODING) && stream->enc) { 
    698704        stream->enc->paused = 1; 
    699  
    700     if ((dir & PJMEDIA_DIR_DECODING) && stream->dec) 
     705        PJ_LOG(4,(THIS_FILE, "Encoder stream paused")); 
     706    } 
     707 
     708    if ((dir & PJMEDIA_DIR_DECODING) && stream->dec) { 
    701709        stream->dec->paused = 1; 
     710        PJ_LOG(4,(THIS_FILE, "Decoder stream paused")); 
     711    } 
    702712 
    703713    return PJ_SUCCESS; 
     
    713723    PJ_ASSERT_RETURN(stream, PJ_EINVAL); 
    714724 
    715     if ((dir & PJMEDIA_DIR_ENCODING) && stream->enc) 
     725    if ((dir & PJMEDIA_DIR_ENCODING) && stream->enc) { 
    716726        stream->enc->paused = 1; 
    717  
    718     if ((dir & PJMEDIA_DIR_DECODING) && stream->dec) 
     727        PJ_LOG(4,(THIS_FILE, "Encoder stream resumed")); 
     728    } 
     729 
     730    if ((dir & PJMEDIA_DIR_DECODING) && stream->dec) { 
    719731        stream->dec->paused = 1; 
    720  
    721     return PJ_SUCCESS; 
    722 } 
    723  
     732        PJ_LOG(4,(THIS_FILE, "Decoder stream resumed")); 
     733    } 
     734 
     735    return PJ_SUCCESS; 
     736} 
     737 
Note: See TracChangeset for help on using the changeset viewer.