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
2e341eb1
Commit
2e341eb1
authored
Apr 22, 2018
by
Clément Bœsch
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
lavf/http: use AV_OPT_FLAG_DEPRECATED for user-agent option
parent
5be0410c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
2 deletions
+1
-2
http.c
libavformat/http.c
+1
-2
No files found.
libavformat/http.c
View file @
2e341eb1
...
...
@@ -141,7 +141,7 @@ static const AVOption options[] = {
{
"user_agent"
,
"override User-Agent header"
,
OFFSET
(
user_agent
),
AV_OPT_TYPE_STRING
,
{
.
str
=
DEFAULT_USER_AGENT
},
0
,
0
,
D
},
{
"referer"
,
"override referer header"
,
OFFSET
(
referer
),
AV_OPT_TYPE_STRING
,
{
.
str
=
NULL
},
0
,
0
,
D
},
#if FF_API_HTTP_USER_AGENT
{
"user-agent"
,
"
override User-Agent header"
,
OFFSET
(
user_agent_deprecated
),
AV_OPT_TYPE_STRING
,
{
.
str
=
DEFAULT_USER_AGENT
},
0
,
0
,
D
},
{
"user-agent"
,
"
use the
\"
user_agent
\"
option instead"
,
OFFSET
(
user_agent_deprecated
),
AV_OPT_TYPE_STRING
,
{
.
str
=
DEFAULT_USER_AGENT
},
0
,
0
,
D
|
AV_OPT_FLAG_DEPRECATE
D
},
#endif
{
"multiple_requests"
,
"use persistent connections"
,
OFFSET
(
multiple_requests
),
AV_OPT_TYPE_BOOL
,
{
.
i64
=
0
},
0
,
1
,
D
|
E
},
{
"post_data"
,
"set custom HTTP post data"
,
OFFSET
(
post_data
),
AV_OPT_TYPE_BINARY
,
.
flags
=
D
|
E
},
...
...
@@ -1193,7 +1193,6 @@ static int http_connect(URLContext *h, const char *path, const char *local_path,
#if FF_API_HTTP_USER_AGENT
if
(
strcmp
(
s
->
user_agent_deprecated
,
DEFAULT_USER_AGENT
))
{
av_log
(
s
,
AV_LOG_WARNING
,
"the user-agent option is deprecated, please use user_agent option
\n
"
);
s
->
user_agent
=
av_strdup
(
s
->
user_agent_deprecated
);
}
#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