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
3a92ee59
Commit
3a92ee59
authored
Oct 12, 2013
by
Lukasz Marek
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avformat/ftp: add log regarding passive mode failure
Signed-off-by:
Lukasz Marek
<
lukasz.m.luki@gmail.com
>
parent
e1fb3143
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
ftp.c
libavformat/ftp.c
+4
-4
No files found.
libavformat/ftp.c
View file @
3a92ee59
...
@@ -270,6 +270,8 @@ static int ftp_passive_mode(FTPContext *s)
...
@@ -270,6 +270,8 @@ static int ftp_passive_mode(FTPContext *s)
fail:
fail:
av_free
(
res
);
av_free
(
res
);
s
->
server_data_port
=
-
1
;
s
->
server_data_port
=
-
1
;
av_log
(
s
,
AV_LOG_ERROR
,
"Set passive mode failed
\n
"
"Your FTP server may use IPv6 which is not supported yet.
\n
"
);
return
AVERROR
(
EIO
);
return
AVERROR
(
EIO
);
}
}
...
@@ -421,7 +423,7 @@ static int ftp_connect_control_connection(URLContext *h)
...
@@ -421,7 +423,7 @@ static int ftp_connect_control_connection(URLContext *h)
}
}
if
((
err
=
ftp_type
(
s
))
<
0
)
{
if
((
err
=
ftp_type
(
s
))
<
0
)
{
av_
dlog
(
h
,
"Set content type failed
\n
"
);
av_
log
(
h
,
AV_LOG_ERROR
,
"Set content type failed
\n
"
);
return
err
;
return
err
;
}
}
}
}
...
@@ -437,10 +439,8 @@ static int ftp_connect_data_connection(URLContext *h)
...
@@ -437,10 +439,8 @@ static int ftp_connect_data_connection(URLContext *h)
if
(
!
s
->
conn_data
)
{
if
(
!
s
->
conn_data
)
{
/* Enter passive mode */
/* Enter passive mode */
if
((
err
=
ftp_passive_mode
(
s
))
<
0
)
{
if
((
err
=
ftp_passive_mode
(
s
))
<
0
)
av_dlog
(
h
,
"Set passive mode failed
\n
"
);
return
err
;
return
err
;
}
/* Open data connection */
/* Open data connection */
ff_url_join
(
buf
,
sizeof
(
buf
),
"tcp"
,
NULL
,
s
->
hostname
,
s
->
server_data_port
,
NULL
);
ff_url_join
(
buf
,
sizeof
(
buf
),
"tcp"
,
NULL
,
s
->
hostname
,
s
->
server_data_port
,
NULL
);
if
(
s
->
rw_timeout
!=
-
1
)
{
if
(
s
->
rw_timeout
!=
-
1
)
{
...
...
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