?? hust_rtpstreamon.c
字號:
/*------------------------------------------------------------------------- * rtpstreamon.c - rtpstreamon *------------------------------------------------------------------------- */#include "hust_rtp.h"/*------------------------------------------------------------------------ * rtpstreamon - begin enqueuing packets for a particular stream. * The parameter clockrate is the stream's media clockrate in Hz. * The clockrate is necessary at the RTP layer to computer jitter stats. *------------------------------------------------------------------------ */intrtpstreamon(struct session *psn, ssrc_t ssrc, u32_t clockrate){ struct stream *pstm; pstm = rtpgetstream(psn, ssrc); if (pstm == NULL) return ERROR; if (pstm->stm_enqueue == TRUE) { /* * Return ERROR if stream is already ``on''. */ rtpreleasestream(psn, pstm); return ERROR; } pstm->stm_clkrt = clockrate; pstm->stm_enqueue = TRUE; rtpreleasestream(psn, pstm); return OK;}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -