From: Michal Sojka Date: Sat, 22 May 2010 00:18:40 +0000 (+0200) Subject: frsh: Export information about the last RTP contract and VRES X-Git-Url: https://rtime.felk.cvut.cz/gitweb/frescor/ffmpeg.git/commitdiff_plain frsh: Export information about the last RTP contract and VRES --- diff --git a/libavformat/frsh.c b/libavformat/frsh.c index b16161604..c819ec588 100644 --- a/libavformat/frsh.c +++ b/libavformat/frsh.c @@ -36,6 +36,10 @@ #include #include +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; }