]> rtime.felk.cvut.cz Git - frescor/ffmpeg.git/commitdiff
frsh: Export information about the last RTP contract and VRES fwp
authorMichal Sojka <sojkam1@fel.cvut.cz>
Sat, 22 May 2010 00:18:40 +0000 (02:18 +0200)
committerMichal Sojka <sojkam1@fel.cvut.cz>
Sat, 22 May 2010 00:18:40 +0000 (02:18 +0200)
libavformat/frsh.c

index b1616160477dfe5b8de723ba244bedaac10396c5..c819ec5881f9b19f5aa8248e2c45f63501480d58 100644 (file)
 #include <frsh.h>
 #include <frsh_core_types.h>
 
+frsh_vres_id_t last_rtp_vres;
+frsh_contract_t        last_rtp_contract;
+
+
 typedef struct {
     int frsh_fd;
     int ttl;
@@ -142,6 +146,12 @@ frsh_output_socket_create(FRSHContext *s)
        //fwp_endpoint_get_params(s->sepoint->protocol_info.body, &node,
        //              &port, &attr, &fd);
 
+       /* Hack to export network contract to application */
+       if (strcmp(s->label, "RTP") == 0) {
+           last_rtp_contract = s->contract;
+           last_rtp_vres = s->vres;
+       }
+
        return frsh_fd;
 }