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
b79fc4ea
Commit
b79fc4ea
authored
Sep 18, 2005
by
Felix Paul Kühne
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* split up hostname and following path and insert the port after the hostname (fixes #351)
parent
5fe3a4a3
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
30 additions
and
4 deletions
+30
-4
modules/gui/macosx/output.m
modules/gui/macosx/output.m
+30
-4
No files found.
modules/gui/macosx/output.m
View file @
b79fc4ea
...
...
@@ -425,11 +425,37 @@
}
if
(
!
[
o_mode
isEqualToString
:
@"RTP"
]
)
{
/* split up the hostname and the following path to paste the
* port correctly. Not need, if there isn't any path following the
* hostname. */
NSArray
*
o_urlItems
=
[[
o_stream_address
stringValue
]
\
componentsSeparatedByString
:
@"/"
];
NSMutableString
*
o_finalStreamAddress
;
o_finalStreamAddress
=
[[
NSMutableString
alloc
]
init
];
if
([
o_urlItems
count
]
==
1
)
{
[
o_finalStreamAddress
appendFormat
:
@"
\"
%@:%@
\"
"
,
\
[
o_stream_address
stringValue
],[
o_stream_port
stringValue
]];
}
else
{
[
o_finalStreamAddress
appendFormat
:
@"
\"
%@:%@"
,
[
o_urlItems
\
objectAtIndex
:
0
],
[
o_stream_port
stringValue
]];
unsigned
int
x
;
x
=
1
;
while
(
x
!=
[
o_urlItems
count
])
{
[
o_finalStreamAddress
appendFormat
:
@"/%@"
,
[
o_urlItems
\
objectAtIndex
:
x
]];
x
=
(
x
+
1
);
}
[
o_finalStreamAddress
appendString
:
@"
\"
"
];
}
[
o_mrl_string
appendFormat
:
@"std{access=%@,mux=%@,url=
\"
%@:%@
\"
%@}"
,
o_mode
,
o_mux_string
,
[
o_stream_address
stringValue
],
[
o_stream_port
stringValue
],
o_announce
];
@"std{access=%@,mux=%@,url=%@%@}"
,
o_mode
,
o_mux_string
,
o_finalStreamAddress
,
o_announce
];
}
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