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
62eaaeac
Commit
62eaaeac
authored
Mar 31, 2011
by
Anton Khirnov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avio: make url_connect internal.
parent
5652bb94
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
17 additions
and
12 deletions
+17
-12
avio.c
libavformat/avio.c
+7
-3
avio.h
libavformat/avio.h
+1
-5
mmsh.c
libavformat/mmsh.c
+2
-2
rtsp.c
libavformat/rtsp.c
+2
-2
url.h
libavformat/url.h
+5
-0
No files found.
libavformat/avio.c
View file @
62eaaeac
...
...
@@ -137,7 +137,7 @@ static int url_alloc_for_protocol (URLContext **puc, struct URLProtocol *up,
return
err
;
}
int
url_connect
(
URLContext
*
uc
)
int
ff
url_connect
(
URLContext
*
uc
)
{
int
err
=
uc
->
prot
->
url_open
(
uc
,
uc
->
filename
,
uc
->
flags
);
if
(
err
)
...
...
@@ -160,7 +160,7 @@ int url_open_protocol (URLContext **puc, struct URLProtocol *up,
ret
=
url_alloc_for_protocol
(
puc
,
up
,
filename
,
flags
);
if
(
ret
)
goto
fail
;
ret
=
url_connect
(
*
puc
);
ret
=
ff
url_connect
(
*
puc
);
if
(
!
ret
)
return
0
;
fail:
...
...
@@ -172,6 +172,10 @@ int url_alloc(URLContext **puc, const char *filename, int flags)
{
return
ffurl_alloc
(
puc
,
filename
,
flags
);
}
int
url_connect
(
URLContext
*
uc
)
{
return
ffurl_connect
(
uc
);
}
#endif
#define URL_SCHEME_CHARS \
...
...
@@ -212,7 +216,7 @@ int url_open(URLContext **puc, const char *filename, int flags)
int
ret
=
ffurl_alloc
(
puc
,
filename
,
flags
);
if
(
ret
)
return
ret
;
ret
=
url_connect
(
*
puc
);
ret
=
ff
url_connect
(
*
puc
);
if
(
!
ret
)
return
0
;
url_close
(
*
puc
);
...
...
libavformat/avio.h
View file @
62eaaeac
...
...
@@ -103,13 +103,9 @@ typedef int URLInterruptCB(void);
attribute_deprecated
int
url_open_protocol
(
URLContext
**
puc
,
struct
URLProtocol
*
up
,
const
char
*
url
,
int
flags
);
attribute_deprecated
int
url_alloc
(
URLContext
**
h
,
const
char
*
url
,
int
flags
);
attribute_deprecated
int
url_connect
(
URLContext
*
h
);
#endif
/**
* Connect an URLContext that has been allocated by url_alloc
*/
int
url_connect
(
URLContext
*
h
);
/**
* Create an URLContext for accessing to the resource indicated by
* url, and open it.
...
...
libavformat/mmsh.c
View file @
62eaaeac
...
...
@@ -248,7 +248,7 @@ static int mmsh_open(URLContext *h, const char *uri, int flags)
host
,
port
,
mmsh
->
request_seq
++
);
ff_http_set_headers
(
mms
->
mms_hd
,
headers
);
err
=
url_connect
(
mms
->
mms_hd
);
err
=
ff
url_connect
(
mms
->
mms_hd
);
if
(
err
)
{
goto
fail
;
}
...
...
@@ -294,7 +294,7 @@ static int mmsh_open(URLContext *h, const char *uri, int flags)
av_dlog
(
NULL
,
"out_buffer is %s"
,
headers
);
ff_http_set_headers
(
mms
->
mms_hd
,
headers
);
err
=
url_connect
(
mms
->
mms_hd
);
err
=
ff
url_connect
(
mms
->
mms_hd
);
if
(
err
)
{
goto
fail
;
}
...
...
libavformat/rtsp.c
View file @
62eaaeac
...
...
@@ -1411,7 +1411,7 @@ redirect:
ff_http_set_headers
(
rt
->
rtsp_hd
,
headers
);
/* complete the connection */
if
(
url_connect
(
rt
->
rtsp_hd
))
{
if
(
ff
url_connect
(
rt
->
rtsp_hd
))
{
err
=
AVERROR
(
EIO
);
goto
fail
;
}
...
...
@@ -1453,7 +1453,7 @@ redirect:
ff_http_init_auth_state
(
rt
->
rtsp_hd_out
,
rt
->
rtsp_hd
);
/* complete the connection */
if
(
url_connect
(
rt
->
rtsp_hd_out
))
{
if
(
ff
url_connect
(
rt
->
rtsp_hd_out
))
{
err
=
AVERROR
(
EIO
);
goto
fail
;
}
...
...
libavformat/url.h
View file @
62eaaeac
...
...
@@ -40,4 +40,9 @@
*/
int
ffurl_alloc
(
URLContext
**
h
,
const
char
*
url
,
int
flags
);
/**
* Connect an URLContext that has been allocated by ffurl_alloc
*/
int
ffurl_connect
(
URLContext
*
h
);
#endif //AVFORMAT_URL_H
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