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
d1146d67
Commit
d1146d67
authored
Jul 22, 2012
by
Peter Ross
Committed by
Michael Niedermayer
Jul 22, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
tls: parse uri path options to underlying tcp URLContext
Signed-off-by:
Michael Niedermayer
<
michaelni@gmx.at
>
parent
b2460858
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
tls.c
libavformat/tls.c
+3
-3
No files found.
libavformat/tls.c
View file @
d1146d67
...
...
@@ -160,7 +160,7 @@ static int tls_open(URLContext *h, const char *uri, int flags)
TLSContext
*
c
=
h
->
priv_data
;
int
ret
;
int
port
;
char
buf
[
200
],
host
[
200
];
char
buf
[
200
],
host
[
200
]
,
path
[
1024
]
;
int
numerichost
=
0
;
struct
addrinfo
hints
=
{
0
},
*
ai
=
NULL
;
const
char
*
proxy_path
;
...
...
@@ -172,8 +172,8 @@ static int tls_open(URLContext *h, const char *uri, int flags)
use_proxy
=
(
proxy_path
!=
NULL
)
&&
!
getenv
(
"no_proxy"
)
&&
av_strstart
(
proxy_path
,
"http://"
,
NULL
);
av_url_split
(
NULL
,
0
,
NULL
,
0
,
host
,
sizeof
(
host
),
&
port
,
NULL
,
0
,
uri
);
ff_url_join
(
buf
,
sizeof
(
buf
),
"tcp"
,
NULL
,
host
,
port
,
NULL
);
av_url_split
(
NULL
,
0
,
NULL
,
0
,
host
,
sizeof
(
host
),
&
port
,
path
,
sizeof
(
path
)
,
uri
);
ff_url_join
(
buf
,
sizeof
(
buf
),
"tcp"
,
NULL
,
host
,
port
,
"%s"
,
path
);
hints
.
ai_flags
=
AI_NUMERICHOST
;
if
(
!
getaddrinfo
(
host
,
NULL
,
&
hints
,
&
ai
))
{
...
...
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