Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
F
ffmpeg.wasm-core
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Linshizhi
ffmpeg.wasm-core
Commits
3b384502
Commit
3b384502
authored
Nov 05, 2011
by
Anton Khirnov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
http: use different classes for http and https.
parent
8ef79f42
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
7 deletions
+11
-7
http.c
libavformat/http.c
+11
-7
No files found.
libavformat/http.c
View file @
3b384502
...
...
@@ -57,13 +57,17 @@ static const AVOption options[] = {
{
"headers"
,
"custom HTTP headers, can override built in default headers"
,
OFFSET
(
headers
),
AV_OPT_TYPE_STRING
},
{
NULL
}
};
static
const
AVClass
httpcontext_class
=
{
.
class_name
=
"HTTP"
,
.
item_name
=
av_default_item_name
,
.
option
=
options
,
.
version
=
LIBAVUTIL_VERSION_INT
,
#define HTTP_CLASS(flavor)\
static const AVClass flavor ## _context_class = {\
.class_name = #flavor,\
.item_name = av_default_item_name,\
.option = options,\
.version = LIBAVUTIL_VERSION_INT,\
};
HTTP_CLASS
(
http
);
HTTP_CLASS
(
https
);
static
int
http_connect
(
URLContext
*
h
,
const
char
*
path
,
const
char
*
hoststr
,
const
char
*
auth
,
int
*
new_location
);
...
...
@@ -518,7 +522,7 @@ URLProtocol ff_http_protocol = {
.
url_close
=
http_close
,
.
url_get_file_handle
=
http_get_file_handle
,
.
priv_data_size
=
sizeof
(
HTTPContext
),
.
priv_data_class
=
&
httpcontext_class
,
.
priv_data_class
=
&
http
_
context_class
,
};
#endif
#if CONFIG_HTTPS_PROTOCOL
...
...
@@ -531,6 +535,6 @@ URLProtocol ff_https_protocol = {
.
url_close
=
http_close
,
.
url_get_file_handle
=
http_get_file_handle
,
.
priv_data_size
=
sizeof
(
HTTPContext
),
.
priv_data_class
=
&
httpcontext_class
,
.
priv_data_class
=
&
http
s_
context_class
,
};
#endif
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment