Changeset 210
- Timestamp:
- Feb 21, 2006 11:43:58 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjmedia/src/pjmedia/stream.c
r205 r210 662 662 stream->enc->paused = 0; 663 663 //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")); 664 667 } 665 668 … … 667 670 stream->dec->paused = 0; 668 671 //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")); 669 675 } 670 676 … … 695 701 PJ_ASSERT_RETURN(stream, PJ_EINVAL); 696 702 697 if ((dir & PJMEDIA_DIR_ENCODING) && stream->enc) 703 if ((dir & PJMEDIA_DIR_ENCODING) && stream->enc) { 698 704 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) { 701 709 stream->dec->paused = 1; 710 PJ_LOG(4,(THIS_FILE, "Decoder stream paused")); 711 } 702 712 703 713 return PJ_SUCCESS; … … 713 723 PJ_ASSERT_RETURN(stream, PJ_EINVAL); 714 724 715 if ((dir & PJMEDIA_DIR_ENCODING) && stream->enc) 725 if ((dir & PJMEDIA_DIR_ENCODING) && stream->enc) { 716 726 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) { 719 731 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.