From fab8156b2f30666adabe227b3d7712fd193873b1 Mon Sep 17 00:00:00 2001 From: Martin Storsjö Date: Sat, 28 Feb 2015 02:00:50 +0200 Subject: avio: Copy URLContext generic options into child URLContexts MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Since all URLContexts have the same AVOptions, such AVOptions will be applied on the outermost context only and removed from the dict, while they probably make sense on all contexts. This makes sure that rw_timeout gets propagated to the innermost URLContext (to make sure it gets passed to the tcp protocol, when opening a http connection for instance). Alternatively, such matching options would be kept in the dict and only removed after the ffurl_connect call. Signed-off-by: Martin Storsjö --- libavformat/srtpproto.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libavformat/srtpproto.c') diff --git a/libavformat/srtpproto.c b/libavformat/srtpproto.c index 2c64f451aa..e6e035aa3e 100644 --- a/libavformat/srtpproto.c +++ b/libavformat/srtpproto.c @@ -81,7 +81,7 @@ static int srtp_open(URLContext *h, const char *uri, int flags) path, sizeof(path), uri); ff_url_join(buf, sizeof(buf), "rtp", NULL, hostname, rtp_port, "%s", path); if ((ret = ffurl_open(&s->rtp_hd, buf, flags, &h->interrupt_callback, NULL, - h->protocols)) < 0) + h->protocols, h)) < 0) goto fail; h->max_packet_size = FFMIN(s->rtp_hd->max_packet_size, -- cgit v1.2.3