changeset 6413:179ddd49895f libavformat

Add rtp_get_rtcp_file_handle function Patch by Josh Allmann, joshua dot allmann at gmail
author mstorsjo
date Wed, 25 Aug 2010 17:32:59 +0000
parents 6d6b63b7e5e3
children 1c0b01ca809d
files rtpdec.h rtpproto.c
diffstat 2 files changed, 10 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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
--- 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,