# HG changeset patch # User mstorsjo # Date 1282757579 0 # Node ID 179ddd49895fcaddf5e851ade8854285f661e660 # Parent 6d6b63b7e5e3d73e19312af7b6568bff76868d41 Add rtp_get_rtcp_file_handle function Patch by Josh Allmann, joshua dot allmann at gmail diff -r 6d6b63b7e5e3 -r 179ddd49895f rtpdec.h --- a/rtpdec.h Wed Aug 25 15:32:29 2010 +0000 +++ b/rtpdec.h Wed Aug 25 17:32:59 2010 +0000 @@ -72,6 +72,11 @@ */ int rtp_check_and_send_back_rr(RTPDemuxContext *s, int count); +/** + * Get the file handle for the RTCP socket. + */ +int rtp_get_rtcp_file_handle(URLContext *h); + // these statistics are used for rtcp receiver reports... typedef struct { uint16_t max_seq; ///< highest sequence number seen diff -r 6d6b63b7e5e3 -r 179ddd49895f rtpproto.c --- a/rtpproto.c Wed Aug 25 15:32:29 2010 +0000 +++ b/rtpproto.c Wed Aug 25 17:32:59 2010 +0000 @@ -373,6 +373,11 @@ return s->rtp_fd; } +int rtp_get_rtcp_file_handle(URLContext *h) { + RTPContext *s = h->priv_data; + return s->rtcp_fd; +} + URLProtocol rtp_protocol = { "rtp", rtp_open,