Relay RTP context flags to RTCP object
This commit is contained in:
parent
5d680d454b
commit
09caee904f
|
@ -73,7 +73,7 @@ namespace uvg_rtp {
|
|||
class rtcp : public runner {
|
||||
public:
|
||||
rtcp(uint32_t ssrc, bool receiver);
|
||||
rtcp(uvg_rtp::rtp *rtp);
|
||||
rtcp(uvg_rtp::rtp *rtp, int flags);
|
||||
~rtcp();
|
||||
|
||||
/* start the RTCP runner thread
|
||||
|
@ -258,6 +258,9 @@ namespace uvg_rtp {
|
|||
* used to change SSRC if a collision is detected */
|
||||
uvg_rtp::rtp *rtp_;
|
||||
|
||||
/* RTP context flags */
|
||||
int flags_;
|
||||
|
||||
/* are we a sender or a receiver */
|
||||
int our_role_;
|
||||
|
||||
|
|
|
@ -117,7 +117,7 @@ rtp_error_t uvg_rtp::media_stream::init()
|
|||
return RTP_MEMORY_ERROR;
|
||||
}
|
||||
|
||||
if (!(rtcp_ = new uvg_rtp::rtcp(rtp_))) {
|
||||
if (!(rtcp_ = new uvg_rtp::rtcp(rtp_, ctx_config_.flags))) {
|
||||
delete rtp_;
|
||||
delete pkt_dispatcher_;
|
||||
return RTP_MEMORY_ERROR;
|
||||
|
|
|
@ -17,8 +17,8 @@
|
|||
#define UDP_HEADER_SIZE 8
|
||||
#define IP_HEADER_SIZE 20
|
||||
|
||||
uvg_rtp::rtcp::rtcp(uvg_rtp::rtp *rtp):
|
||||
rtp_(rtp), our_role_(RECEIVER),
|
||||
uvg_rtp::rtcp::rtcp(uvg_rtp::rtp *rtp, int flags):
|
||||
rtp_(rtp), flags_(flags), our_role_(RECEIVER),
|
||||
tp_(0), tc_(0), tn_(0), pmembers_(0),
|
||||
members_(0), senders_(0), rtcp_bandwidth_(0),
|
||||
we_sent_(0), avg_rtcp_pkt_pize_(0), rtcp_pkt_count_(0),
|
||||
|
|
Loading…
Reference in New Issue