Changeset 1048 for pjproject/trunk
- Timestamp:
- Mar 7, 2007 11:26:00 AM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjmedia/src/pjmedia/stream.c
r974 r1048 918 918 } 919 919 920 /* Ignore keep-alive packets */ 921 if (bytes_read < sizeof(pjmedia_rtp_hdr)) 922 return; 923 920 924 /* Update RTP and RTCP session. */ 921 925 status = pjmedia_rtp_decode_rtp(&channel->rtp, pkt, bytes_read, … … 932 936 pj_ntohl(hdr->ts), payloadlen); 933 937 938 /* Ignore the packet if decoder is paused */ 939 if (channel->paused) 940 return; 941 934 942 /* Handle incoming DTMF. */ 935 943 if (hdr->pt == stream->rx_event_pt) { … … 937 945 return; 938 946 } 939 940 947 941 948 /* Update RTP session (also checks if RTP session can accept … … 1474 1481 if ((dir & PJMEDIA_DIR_DECODING) && stream->dec) { 1475 1482 stream->dec->paused = 1; 1483 1484 /* Also reset jitter buffer */ 1485 pj_mutex_lock( stream->jb_mutex ); 1486 pjmedia_jbuf_reset(stream->jb); 1487 pj_mutex_unlock( stream->jb_mutex ); 1488 1476 1489 PJ_LOG(4,(stream->port.info.name.ptr, "Decoder stream paused")); 1477 1490 } … … 1490 1503 1491 1504 if ((dir & PJMEDIA_DIR_ENCODING) && stream->enc) { 1492 stream->enc->paused = 1;1505 stream->enc->paused = 0; 1493 1506 PJ_LOG(4,(stream->port.info.name.ptr, "Encoder stream resumed")); 1494 1507 } 1495 1508 1496 1509 if ((dir & PJMEDIA_DIR_DECODING) && stream->dec) { 1497 stream->dec->paused = 1;1510 stream->dec->paused = 0; 1498 1511 PJ_LOG(4,(stream->port.info.name.ptr, "Decoder stream resumed")); 1499 1512 }
Note: See TracChangeset
for help on using the changeset viewer.