Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-2-2
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-2-2
Commits
de4e45c3
Commit
de4e45c3
authored
Feb 10, 2007
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Minor cleanup
parent
02859f76
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
17 deletions
+12
-17
modules/access_output/udp.c
modules/access_output/udp.c
+12
-17
No files found.
modules/access_output/udp.c
View file @
de4e45c3
/*****************************************************************************
* udp.c
*****************************************************************************
* Copyright (C) 2001-200
5
the VideoLAN team
* Copyright (C) 2001-200
7
the VideoLAN team
* $Id$
*
* Authors: Laurent Aimar <fenrir@via.ecp.fr>
...
...
@@ -228,28 +228,23 @@ static int Open( vlc_object_t *p_this )
psz_parser
=
strdup
(
p_access
->
psz_path
);
psz_dst_addr
=
psz_parser
;
i_dst_port
=
0
;
i_dst_port
=
DEFAULT_PORT
;
if
(
*
psz_parser
==
'['
)
if
(
psz_parser
[
0
]
==
'['
)
{
while
(
*
psz_parser
&&
*
psz_parser
!=
']'
)
psz_parser
=
strchr
(
psz_parser
,
']'
);
if
(
psz_parser
!=
NULL
)
{
psz_parser
++
;
*
psz_parser
++
=
'\0'
;
psz_dst_addr
++
;
}
}
while
(
*
psz_parser
&&
*
psz_parser
!=
':'
)
{
psz_parser
++
;
}
if
(
*
psz_parser
==
':'
)
{
*
psz_parser
=
'\0'
;
psz_parser
++
;
i_dst_port
=
atoi
(
psz_parser
);
}
if
(
i_dst_port
<=
0
)
psz_parser
=
strchr
(
psz_parser
,
':'
);
if
(
psz_parser
!=
NULL
)
{
i_dst_port
=
DEFAULT_PORT
;
*
psz_parser
++
=
'\0'
;
i_dst_port
=
atoi
(
psz_parser
);
}
if
(
var_Create
(
p_access
,
"dst-port"
,
VLC_VAR_INTEGER
)
...
...
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