Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc
Commits
d98ebefd
Commit
d98ebefd
authored
Sep 09, 2006
by
Rémi Denis-Courmont
Committed by
Rémi Denis-Courmont
Jun 01, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
More fixes
(cherry picked from commit
020a810e
)
parent
f9740938
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
3 deletions
+9
-3
modules/access/ftp.c
modules/access/ftp.c
+9
-3
No files found.
modules/access/ftp.c
View file @
d98ebefd
...
...
@@ -497,7 +497,6 @@ static int ftp_ReadCommand( access_t *p_access,
int
i_answer
;
psz_line
=
net_Gets
(
p_access
,
p_sys
->
fd_cmd
,
NULL
);
msg_Dbg
(
p_access
,
"answer=%s"
,
psz_line
);
if
(
psz_line
==
NULL
||
strlen
(
psz_line
)
<
3
)
{
msg_Err
(
p_access
,
"cannot get answer"
);
...
...
@@ -506,6 +505,7 @@ static int ftp_ReadCommand( access_t *p_access,
if
(
ppsz_answer
)
*
ppsz_answer
=
NULL
;
return
-
1
;
}
msg_Dbg
(
p_access
,
"answer=%s"
,
psz_line
);
if
(
psz_line
[
3
]
==
'-'
)
/* Multiple response */
{
...
...
@@ -570,7 +570,7 @@ static int ftp_StartStream( access_t *p_access, off_t i_start )
return
VLC_EGENERIC
;
}
if
(
psz_ip
!=
NULL
)
if
(
*
psz_ip
)
{
char
psz_fmt
[
7
]
=
"(|||%u"
;
psz_fmt
[
1
]
=
psz_fmt
[
2
]
=
psz_fmt
[
3
]
=
psz_parser
[
1
];
...
...
@@ -637,6 +637,12 @@ static int ftp_StartStream( access_t *p_access, off_t i_start )
msg_Err
(
p_access
,
"cannot retreive file"
);
return
VLC_EGENERIC
;
}
if
(
p_access
->
i_object_type
==
VLC_OBJECT_ACCESS
)
net_StopSend
(
p_sys
->
fd_data
);
else
net_StopRecv
(
p_sys
->
fd_data
);
return
VLC_SUCCESS
;
}
...
...
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