Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
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
Commits
94038d2f
Commit
94038d2f
authored
Nov 30, 2009
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Code factorization
parent
2912aadf
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
31 deletions
+17
-31
modules/gui/qt4/dialogs/sout.cpp
modules/gui/qt4/dialogs/sout.cpp
+17
-31
No files found.
modules/gui/qt4/dialogs/sout.cpp
View file @
94038d2f
...
...
@@ -140,55 +140,41 @@ void SoutDialog::closeTab()
void
SoutDialog
::
addDest
(
)
{
int
index
;
VirtualDestBox
*
db
;
QString
caption
;
switch
(
ui
.
destBox
->
currentIndex
()
)
{
case
0
:
{
FileDestBox
*
fdb
=
new
FileDestBox
(
this
);
index
=
ui
.
destTab
->
addTab
(
fdb
,
qtr
(
"File"
)
);
CONNECT
(
fdb
,
mrlUpdated
(),
this
,
updateMRL
()
);
}
db
=
new
FileDestBox
(
this
);
caption
=
qtr
(
"File"
);
break
;
case
1
:
{
HTTPDestBox
*
hdb
=
new
HTTPDestBox
(
this
);
index
=
ui
.
destTab
->
addTab
(
hdb
,
"HTTP"
);
CONNECT
(
hdb
,
mrlUpdated
(),
this
,
updateMRL
()
);
}
db
=
new
HTTPDestBox
(
this
);
caption
=
qfu
(
"HTTP"
);
break
;
case
2
:
{
MMSHDestBox
*
mdb
=
new
MMSHDestBox
(
this
);
index
=
ui
.
destTab
->
addTab
(
mdb
,
"WMSP"
);
CONNECT
(
mdb
,
mrlUpdated
(),
this
,
updateMRL
()
);
}
db
=
new
MMSHDestBox
(
this
);
caption
=
qfu
(
"WMSP"
);
break
;
case
3
:
{
RTPDestBox
*
rdb
=
new
RTPDestBox
(
this
);
index
=
ui
.
destTab
->
addTab
(
rdb
,
"RTP/TS"
);
CONNECT
(
rdb
,
mrlUpdated
(),
this
,
updateMRL
()
);
}
db
=
new
RTPDestBox
(
this
);
caption
=
"RTP/TS"
;
break
;
case
4
:
{
UDPDestBox
*
udb
=
new
UDPDestBox
(
this
);
index
=
ui
.
destTab
->
addTab
(
udb
,
"UDP"
);
CONNECT
(
udb
,
mrlUpdated
(),
this
,
updateMRL
()
);
}
db
=
new
UDPDestBox
(
this
);
caption
=
"UDP"
;
break
;
case
5
:
{
ICEDestBox
*
idb
=
new
ICEDestBox
(
this
);
index
=
ui
.
destTab
->
addTab
(
idb
,
"Icecast"
);
CONNECT
(
idb
,
mrlUpdated
(),
this
,
updateMRL
()
);
}
db
=
new
ICEDestBox
(
this
);
caption
=
"Icecast"
;
break
;
default:
assert
(
0
);
}
int
index
=
ui
.
destTab
->
addTab
(
db
,
caption
);
CONNECT
(
db
,
mrlUpdated
(),
this
,
updateMRL
()
);
ui
.
destTab
->
setCurrentIndex
(
index
);
updateMRL
();
}
...
...
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