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
a0ed366e
Commit
a0ed366e
authored
Aug 02, 2005
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Minor bugfix and cleanup
parent
3ed2da31
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
19 deletions
+9
-19
modules/access/tcp.c
modules/access/tcp.c
+9
-19
No files found.
modules/access/tcp.c
View file @
a0ed366e
...
...
@@ -80,32 +80,22 @@ static int Open( vlc_object_t *p_this )
char
*
psz_parser
=
psz_dup
;
/* Parse server:port */
while
(
*
psz_parser
&&
*
psz_parser
!=
':
'
)
if
(
*
psz_parser
==
'[
'
)
{
if
(
*
psz_parser
==
'['
)
{
/* IPV6 */
while
(
*
psz_parser
&&
*
psz_parser
!=
']'
)
{
psz_parser
++
;
}
}
psz_parser
++
;
psz_parser
=
strchr
(
psz_parser
,
']'
);
if
(
psz_parser
==
NULL
)
psz_parser
=
psz_dup
;
}
if
(
*
psz_parser
!=
':'
||
psz_parser
==
psz_dup
)
psz_parser
=
strchr
(
psz_parser
,
':'
);
if
(
psz_parser
==
NULL
)
{
msg_Err
(
p_access
,
"
you have to provide server:port addresse"
);
msg_Err
(
p_access
,
"
missing port number : %s"
,
psz_dup
);
free
(
psz_dup
);
return
VLC_EGENERIC
;
}
*
psz_parser
++
=
'\0'
;
if
(
atoi
(
psz_parser
)
<=
0
)
{
msg_Err
(
p_access
,
"invalid port number (%d)"
,
atoi
(
psz_parser
)
);
free
(
psz_dup
);
return
VLC_EGENERIC
;
}
*
psz_parser
++
=
'\0'
;
/* Init p_access */
p_access
->
pf_read
=
Read
;
...
...
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