Commit 186f1ec5 authored by Josh Allmann's avatar Josh Allmann Committed by Martin Storsjö

Add rtp_get_rtcp_file_handle function

Patch by Josh Allmann, joshua dot allmann at gmail

Originally committed as revision 24929 to svn://svn.ffmpeg.org/ffmpeg/trunk
parent 4574b815
...@@ -72,6 +72,11 @@ void rtp_send_punch_packets(URLContext* rtp_handle); ...@@ -72,6 +72,11 @@ void rtp_send_punch_packets(URLContext* rtp_handle);
*/ */
int rtp_check_and_send_back_rr(RTPDemuxContext *s, int count); 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... // these statistics are used for rtcp receiver reports...
typedef struct { typedef struct {
uint16_t max_seq; ///< highest sequence number seen uint16_t max_seq; ///< highest sequence number seen
......
...@@ -373,6 +373,11 @@ static int rtp_get_file_handle(URLContext *h) ...@@ -373,6 +373,11 @@ static int rtp_get_file_handle(URLContext *h)
return s->rtp_fd; return s->rtp_fd;
} }
int rtp_get_rtcp_file_handle(URLContext *h) {
RTPContext *s = h->priv_data;
return s->rtcp_fd;
}
URLProtocol rtp_protocol = { URLProtocol rtp_protocol = {
"rtp", "rtp",
rtp_open, rtp_open,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment