From e8f986c9d49bd268b086dc71302084587bee5bf4 Mon Sep 17 00:00:00 2001 From: Michal Sojka Date: Sat, 22 May 2010 02:18:40 +0200 Subject: [PATCH] frsh: Export information about the last RTP contract and VRES --- libavformat/frsh.c | 10 ++++++++++ 1 file changed, 10 insertions(+) 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; } -- 2.39.2