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
bb8d2b9e
Commit
bb8d2b9e
authored
Mar 22, 2008
by
Jean-Baptiste Kempf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix the '@' disappearance in UDP addresses.
parent
5f9af46a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
6 deletions
+13
-6
modules/gui/qt4/components/open_panels.cpp
modules/gui/qt4/components/open_panels.cpp
+13
-6
No files found.
modules/gui/qt4/components/open_panels.cpp
View file @
bb8d2b9e
...
...
@@ -452,11 +452,15 @@ void NetOpenPanel::updateProtocol( int idx ) {
void
NetOpenPanel
::
updateMRL
()
{
QString
mrl
=
""
;
QString
addr
=
ui
.
addressText
->
text
();
addr
=
QUrl
::
toPercentEncoding
(
addr
,
":/?#@!$&'()*+,;="
);
int
proto
=
ui
.
protocolCombo
->
currentIndex
();
if
(
addr
.
contains
(
"://"
)
&&
proto
!=
5
)
{
if
(
addr
.
contains
(
"://"
)
&&
(
proto
!=
5
||
proto
!=
6
)
)
{
mrl
=
addr
;
}
else
{
}
else
{
switch
(
proto
)
{
case
0
:
mrl
=
"http://"
+
addr
;
...
...
@@ -480,7 +484,8 @@ void NetOpenPanel::updateMRL() {
break
;
case
5
:
mrl
=
"udp://@"
;
if
(
ui
.
ipv6
->
isEnabled
()
&&
ui
.
ipv6
->
isChecked
()
)
{
if
(
ui
.
ipv6
->
isEnabled
()
&&
ui
.
ipv6
->
isChecked
()
)
{
mrl
+=
"[::]"
;
}
mrl
+=
QString
(
":%1"
).
arg
(
ui
.
portSpin
->
value
()
);
...
...
@@ -489,16 +494,18 @@ void NetOpenPanel::updateMRL() {
case
6
:
/* UDP multicast */
mrl
=
"udp://@"
;
/* Add [] to IPv6 */
if
(
addr
.
contains
(
':'
)
&&
!
addr
.
contains
(
'['
)
)
{
if
(
addr
.
contains
(
':'
)
&&
!
addr
.
contains
(
'['
)
)
{
mrl
+=
"["
+
addr
+
"]"
;
}
else
mrl
+=
addr
;
}
else
mrl
+=
addr
;
mrl
+=
QString
(
":%1"
).
arg
(
ui
.
portSpin
->
value
()
);
emit
methodChanged
(
"udp-caching"
);
}
}
// Encode the boring stuffs
mrl
=
QUrl
(
mrl
).
toEncoded
();
if
(
ui
.
timeShift
->
isEnabled
()
&&
ui
.
timeShift
->
isChecked
()
)
{
mrl
+=
" :access-filter=timeshift"
;
}
...
...
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