Browse code

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

Josh Allmann authored on 2010/08/26 02:32:59
Showing 2 changed files
... ...
@@ -72,6 +72,11 @@ void rtp_send_punch_packets(URLContext* rtp_handle);
72 72
  */
73 73
 int rtp_check_and_send_back_rr(RTPDemuxContext *s, int count);
74 74
 
75
+/**
76
+ * Get the file handle for the RTCP socket.
77
+ */
78
+int rtp_get_rtcp_file_handle(URLContext *h);
79
+
75 80
 // these statistics are used for rtcp receiver reports...
76 81
 typedef struct {
77 82
     uint16_t max_seq;           ///< highest sequence number seen
... ...
@@ -373,6 +373,11 @@ static int rtp_get_file_handle(URLContext *h)
373 373
     return s->rtp_fd;
374 374
 }
375 375
 
376
+int rtp_get_rtcp_file_handle(URLContext *h) {
377
+    RTPContext *s = h->priv_data;
378
+    return s->rtcp_fd;
379
+}
380
+
376 381
 URLProtocol rtp_protocol = {
377 382
     "rtp",
378 383
     rtp_open,