fail:
av_free(res);
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);
}
}
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;
}
}
if (!s->conn_data) {
/* Enter passive mode */
- if ((err = ftp_passive_mode(s)) < 0) {
- av_dlog(h, "Set passive mode failed\n");
+ if ((err = ftp_passive_mode(s)) < 0)
return err;
- }
/* Open data connection */
ff_url_join(buf, sizeof(buf), "tcp", NULL, s->hostname, s->server_data_port, NULL);
if (s->rw_timeout != -1) {