mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-06-04 19:07:55 +00:00
avio: Add an URLProtocol flag for indicating that a protocol uses network
This definition is in two files, since the definitions will move to the private header at the next bump. Signed-off-by: Martin Storsjö <martin@martin.st>
This commit is contained in:
parent
bb5b3940b0
commit
32b83aeec1
12 changed files with 18 additions and 0 deletions
|
@ -565,6 +565,7 @@ URLProtocol ff_http_protocol = {
|
|||
.url_get_file_handle = http_get_file_handle,
|
||||
.priv_data_size = sizeof(HTTPContext),
|
||||
.priv_data_class = &http_context_class,
|
||||
.flags = URL_PROTOCOL_FLAG_NETWORK,
|
||||
};
|
||||
#endif
|
||||
#if CONFIG_HTTPS_PROTOCOL
|
||||
|
@ -578,6 +579,7 @@ URLProtocol ff_https_protocol = {
|
|||
.url_get_file_handle = http_get_file_handle,
|
||||
.priv_data_size = sizeof(HTTPContext),
|
||||
.priv_data_class = &https_context_class,
|
||||
.flags = URL_PROTOCOL_FLAG_NETWORK,
|
||||
};
|
||||
#endif
|
||||
|
||||
|
@ -693,5 +695,6 @@ URLProtocol ff_httpproxy_protocol = {
|
|||
.url_close = http_proxy_close,
|
||||
.url_get_file_handle = http_get_file_handle,
|
||||
.priv_data_size = sizeof(HTTPContext),
|
||||
.flags = URL_PROTOCOL_FLAG_NETWORK,
|
||||
};
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue