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
31d87e5d
Commit
31d87e5d
authored
Dec 10, 2003
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Automatically adds [ and ] around IPv6 addresses in Media Resource Locator.
parent
9e1d63b5
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
28 additions
and
16 deletions
+28
-16
modules/gui/wxwindows/open.cpp
modules/gui/wxwindows/open.cpp
+17
-14
modules/gui/wxwindows/streamout.cpp
modules/gui/wxwindows/streamout.cpp
+11
-2
No files found.
modules/gui/wxwindows/open.cpp
View file @
31d87e5d
...
...
@@ -2,7 +2,7 @@
* open.cpp : wxWindows plugin for vlc
*****************************************************************************
* Copyright (C) 2000-2001 VideoLAN
* $Id: open.cpp,v 1.4
7 2003/12/09 19:15:03 yoann
Exp $
* $Id: open.cpp,v 1.4
8 2003/12/10 11:04:25 courmisch
Exp $
*
* Authors: Gildas Bazin <gbazin@netcourrier.com>
*
...
...
@@ -685,27 +685,30 @@ void OpenDialog::UpdateMRL( int i_access_method )
switch
(
i_net_type
)
{
case
0
:
mrltemp
=
wxT
(
"udp"
)
+
demux
+
wxT
(
"://"
);
if
(
i_net_ports
[
0
]
!=
config_GetInt
(
p_intf
,
"server-port"
)
)
{
mrltemp
=
wxT
(
"udp"
)
+
demux
+
wxString
::
Format
(
wxT
(
"://@:%d"
),
i_net_ports
[
0
]
);
}
else
{
mrltemp
=
wxT
(
"udp"
)
+
demux
+
wxT
(
"://"
);
mrltemp
+=
wxString
::
Format
(
wxT
(
"@:%d"
),
i_net_ports
[
0
]
);
}
break
;
case
1
:
mrltemp
=
wxT
(
"udp"
)
+
demux
+
wxT
(
"://@"
)
+
net_addrs
[
1
]
->
GetLineText
(
0
);
if
(
i_net_ports
[
1
]
!=
config_GetInt
(
p_intf
,
"server-port"
)
)
mrltemp
=
wxT
(
"udp"
)
+
demux
+
wxT
(
"://@"
);
if
((
net_addrs
[
1
]
->
GetLineText
(
0
).
Find
(
':'
)
!=
-
1
)
&&
(
net_addrs
[
1
]
->
GetLineText
(
0
)[
0u
]
!=
'['
))
{
/* automatically adds '[' and ']' to IPv6 addresses */
mrltemp
+=
wxT
(
"["
)
+
net_addrs
[
1
]
->
GetLineText
(
0
)
+
wxT
(
"]"
);
}
else
{
mrltemp
+=
net_addrs
[
1
]
->
GetLineText
(
0
);
}
if
(
i_net_ports
[
1
]
!=
config_GetInt
(
p_intf
,
"server-port"
)
)
{
mrltemp
=
mrltemp
+
wxString
::
Format
(
wxT
(
":%d"
),
i_net_ports
[
1
]
);
mrltemp
+=
wxString
::
Format
(
wxT
(
":%d"
),
i_net_ports
[
1
]
);
}
break
;
...
...
modules/gui/wxwindows/streamout.cpp
View file @
31d87e5d
...
...
@@ -2,7 +2,7 @@
* streamout.cpp : wxWindows plugin for vlc
*****************************************************************************
* Copyright (C) 2000-2001 VideoLAN
* $Id: streamout.cpp,v 1.3
7 2003/11/27 10:34:51 gbazin
Exp $
* $Id: streamout.cpp,v 1.3
8 2003/12/10 11:04:25 courmisch
Exp $
*
* Authors: Gildas Bazin <gbazin@netcourrier.com>
*
...
...
@@ -334,7 +334,16 @@ void SoutDialog::UpdateMRL()
if
(
!
dup_opts
.
IsEmpty
()
)
dup_opts
+=
wxT
(
","
);
dup_opts
+=
wxT
(
"dst=std{access=udp,mux="
);
dup_opts
+=
encapsulation
+
wxT
(
",url="
);
dup_opts
+=
net_addrs
[
UDP_ACCESS_OUT
]
->
GetLineText
(
0
);
wxString
udp_addr
=
net_addrs
[
UDP_ACCESS_OUT
]
->
GetLineText
(
0
);
if
((
udp_addr
[
0u
]
!=
'['
)
&&
(
udp_addr
.
Find
(
':'
)
!=
-
1
))
{
dup_opts
+=
wxT
(
"["
)
+
udp_addr
+
wxT
(
"]"
);
}
else
{
dup_opts
+=
udp_addr
;
}
dup_opts
+=
wxString
::
Format
(
wxT
(
":%d"
),
net_ports
[
UDP_ACCESS_OUT
]
->
GetValue
()
);
...
...
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