diff options
author | Lorenzo Mangani <lorenzo.mangani@gmail.com> | 2014-05-18 15:58:03 +0200 |
---|---|---|
committer | Lorenzo Mangani <lorenzo.mangani@gmail.com> | 2014-05-18 15:58:03 +0200 |
commit | a047649785498f35e467b9d964b3f4b8a77b4b6f (patch) | |
tree | 3acaf4c5737431d539292f7d1a0c127d836d7d56 /src/stream.c | |
parent | 009257e5139c1bc03f82883f9f6bf5f628923bbb (diff) | |
parent | dd2e332a65af6dce2e540f27fdb2b815f4358574 (diff) |
Merge remote-tracking branch 'upstream/master'
Diffstat (limited to 'src/stream.c')
-rw-r--r-- | src/stream.c | 37 |
1 files changed, 0 insertions, 37 deletions
diff --git a/src/stream.c b/src/stream.c index ffb1e82..086369f 100644 --- a/src/stream.c +++ b/src/stream.c @@ -10,46 +10,11 @@ #include "core.h" -#define MAGIC 0x00814ea5 -#include "magic.h" - - enum { RTP_RECV_SIZE = 8192, }; -/** Defines a generic media stream */ -struct stream { - MAGIC_DECL - - struct le le; /**< Linked list element */ - struct config_avt cfg; /**< Stream configuration */ - struct call *call; /**< Ref. to call object */ - struct sdp_media *sdp; /**< SDP Media line */ - struct rtp_sock *rtp; /**< RTP Socket */ - struct rtpkeep *rtpkeep; /**< RTP Keepalive */ - struct rtcp_stats rtcp_stats;/**< RTCP statistics */ - struct jbuf *jbuf; /**< Jitter Buffer for incoming RTP */ - struct mnat_media *mns; /**< Media NAT traversal state */ - const struct menc *menc; /**< Media encryption module */ - struct menc_sess *mencs; /**< Media encryption session state */ - struct menc_media *mes; /**< Media Encryption media state */ - struct metric metric_tx; /**< Metrics for transmit */ - struct metric metric_rx; /**< Metrics for receiving */ - char *cname; /**< RTCP Canonical end-point identifier */ - uint32_t ssrc_rx; /**< Incoming syncronizing source */ - uint32_t pseq; /**< Sequence number for incoming RTP */ - int pt_enc; /**< Payload type for encoding */ - bool rtcp; /**< Enable RTCP */ - bool rtcp_mux; /**< RTP/RTCP multiplex supported by peer */ - bool jbuf_started; /**< True if jitter-buffer was started */ - stream_rtp_h *rtph; /**< Stream RTP handler */ - stream_rtcp_h *rtcph; /**< Stream RTCP handler */ - void *arg; /**< Handler argument */ -}; - - static inline int lostcalc(struct stream *s, uint16_t seq) { const uint16_t delta = seq - s->pseq; @@ -263,8 +228,6 @@ int stream_alloc(struct stream **sp, const struct config_avt *cfg, if (!s) return ENOMEM; - MAGIC_INIT(s); - s->cfg = *cfg; s->call = call; s->rtph = rtph; |