aboutsummaryrefslogtreecommitdiffstats
path: root/libavformat/avio.h
diff options
context:
space:
mode:
authorMartin Storsjö <martin@martin.st>2011-02-28 15:39:36 +0200
committerLuca Barbato <lu_zero@gentoo.org>2011-03-06 23:29:39 +0100
commit8f73c060773156cbf48e153506a38bcb6e2c4c6d (patch)
tree6156acbe07eb155f0c1e02bf9b48df0b8bd1e12e /libavformat/avio.h
parentf3bea9915fdc87c3f5b635fcfe0250a28e2b1a88 (diff)
downloadffmpeg-8f73c060773156cbf48e153506a38bcb6e2c4c6d.tar.gz
URLProtocol: Add URL_PROTOCOL_FLAG_NESTED_SCHEME
If this flag is set, the protocol can handle URLs where the scheme is a nested scheme such as applehttp+file: - the protocol can handle any URL where the first segment of the nested scheme belongs to this protocol. Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
Diffstat (limited to 'libavformat/avio.h')
-rw-r--r--libavformat/avio.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/libavformat/avio.h b/libavformat/avio.h
index fd18f0d8ea..acdd0c1bd0 100644
--- a/libavformat/avio.h
+++ b/libavformat/avio.h
@@ -281,6 +281,8 @@ int64_t av_url_read_seek(URLContext *h, int stream_index,
*/
#define AVSEEK_FORCE 0x20000
+#define URL_PROTOCOL_FLAG_NESTED_SCHEME 1 /*< The protocol name can be the first part of a nested protocol scheme */
+
typedef struct URLProtocol {
const char *name;
int (*url_open)(URLContext *h, const char *url, int flags);