From 8c0ceafb0f25da077ff23e394667119f031574fd Mon Sep 17 00:00:00 2001 From: Anton Khirnov Date: Fri, 19 Feb 2016 18:02:45 +0100 Subject: urlprotocol: receive a list of protocols from the caller This way, the decisions about which protocols are available for use in any given situations can be delegated to the caller. --- libavformat/mmsh.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'libavformat/mmsh.c') diff --git a/libavformat/mmsh.c b/libavformat/mmsh.c index bdbf67820a..4c1ed05b24 100644 --- a/libavformat/mmsh.c +++ b/libavformat/mmsh.c @@ -230,7 +230,7 @@ static int mmsh_open(URLContext *h, const char *uri, int flags) ff_url_join(httpname, sizeof(httpname), "http", NULL, host, port, "%s", path); if (ffurl_alloc(&mms->mms_hd, httpname, AVIO_FLAG_READ, - &h->interrupt_callback) < 0) { + &h->interrupt_callback, h->protocols) < 0) { return AVERROR(EIO); } @@ -259,7 +259,7 @@ static int mmsh_open(URLContext *h, const char *uri, int flags) ffurl_close(mms->mms_hd); memset(headers, 0, sizeof(headers)); if ((err = ffurl_alloc(&mms->mms_hd, httpname, AVIO_FLAG_READ, - &h->interrupt_callback)) < 0) { + &h->interrupt_callback, h->protocols)) < 0) { goto fail; } stream_selection = av_mallocz(mms->stream_num * 19 + 1); -- cgit v1.2.3