Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-1.1
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-1.1
Commits
b6370eb0
Commit
b6370eb0
authored
Oct 15, 2001
by
Sam Hocevar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* Fixed an error in the ts://server[:port][/broadcast] input parsing.
parent
6ea68caa
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
12 deletions
+12
-12
src/input/input.c
src/input/input.c
+12
-12
No files found.
src/input/input.c
View file @
b6370eb0
...
...
@@ -4,7 +4,7 @@
* decoders.
*****************************************************************************
* Copyright (C) 1998, 1999, 2000 VideoLAN
* $Id: input.c,v 1.14
2 2001/10/10 14:25:15
sam Exp $
* $Id: input.c,v 1.14
3 2001/10/15 14:59:56
sam Exp $
*
* Authors: Christophe Massiot <massiot@via.ecp.fr>
*
...
...
@@ -716,18 +716,24 @@ static void NetworkOpen( input_thread_t * p_input )
char
*
psz_port
=
psz_server
;
/* Skip the hostname part */
while
(
*
psz_port
&&
*
psz_port
!=
':'
)
while
(
*
psz_port
&&
*
psz_port
!=
':'
&&
*
psz_port
!=
'/'
)
{
psz_port
++
;
}
/* Found a port name */
/* Found a port name
or a broadcast addres
*/
if
(
*
psz_port
)
{
/* Replace ':' with '\0' */
*
psz_port
=
'\0'
;
psz_port
++
;
/* That's a port name */
if
(
*
psz_port
==
':'
)
{
*
psz_port
=
'\0'
;
psz_port
++
;
i_port
=
atoi
(
psz_port
);
}
/* Search for '/' just after the port in case
* we also have a broadcast address */
psz_broadcast
=
psz_port
;
while
(
*
psz_broadcast
&&
*
psz_broadcast
!=
'/'
)
{
...
...
@@ -747,12 +753,6 @@ static void NetworkOpen( input_thread_t * p_input )
{
psz_broadcast
=
NULL
;
}
/* port before broadcast address */
if
(
*
psz_port
!=
'\0'
)
{
i_port
=
atoi
(
psz_port
);
}
}
}
else
...
...
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