Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-gpu
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-gpu
Commits
3eb4455a
Commit
3eb4455a
authored
Mar 03, 2009
by
Jean-Baptiste Kempf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Qt: remove dead code in sout to simplify.
parent
a81446ff
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
7 additions
and
45 deletions
+7
-45
modules/gui/qt4/dialogs/sout.cpp
modules/gui/qt4/dialogs/sout.cpp
+2
-34
modules/gui/qt4/dialogs/sout.hpp
modules/gui/qt4/dialogs/sout.hpp
+3
-9
modules/gui/qt4/dialogs/vlm.cpp
modules/gui/qt4/dialogs/vlm.cpp
+1
-1
modules/gui/qt4/dialogs_provider.cpp
modules/gui/qt4/dialogs_provider.cpp
+1
-1
No files found.
modules/gui/qt4/dialogs/sout.cpp
View file @
3eb4455a
...
...
@@ -88,13 +88,11 @@ struct sout_gui_descr_t
SoutDialog
*
SoutDialog
::
instance
=
NULL
;
SoutDialog
::
SoutDialog
(
QWidget
*
parent
,
intf_thread_t
*
_p_intf
,
bool
_transcode_only
)
:
QVLCDialog
(
parent
,
_p_intf
)
SoutDialog
::
SoutDialog
(
QWidget
*
parent
,
intf_thread_t
*
_p_intf
)
:
QVLCDialog
(
parent
,
_p_intf
)
{
setWindowTitle
(
qtr
(
"Stream Output"
)
);
b_transcode_only
=
_transcode_only
;
/* UI stuff */
ui
.
setupUi
(
this
);
...
...
@@ -152,7 +150,6 @@ SoutDialog::SoutDialog( QWidget *parent, intf_thread_t *_p_intf,
CONNECT
(
ui
.
UDPOutput
,
toggled
(
bool
),
this
,
changeUDPandRTPmess
(
bool
)
);
CONNECT
(
ui
.
RTPOutput
,
clicked
(
bool
),
this
,
RTPtoggled
(
bool
)
);
if
(
b_transcode_only
)
toggleSout
();
}
void
SoutDialog
::
fileBrowse
()
...
...
@@ -223,35 +220,6 @@ void SoutDialog::setOptions()
updateMRL
();
}
void
SoutDialog
::
toggleSout
()
{
//Toggle all the streaming options.
#define HIDEORSHOW(x) if( b_transcode_only ) x->hide(); else x->show();
HIDEORSHOW
(
ui
.
HTTPOutput
)
;
HIDEORSHOW
(
ui
.
RTPOutput
)
;
HIDEORSHOW
(
ui
.
MMSHOutput
)
;
HIDEORSHOW
(
ui
.
UDPOutput
)
;
HIDEORSHOW
(
ui
.
HTTPEdit
)
;
HIDEORSHOW
(
ui
.
RTPEdit
)
;
HIDEORSHOW
(
ui
.
MMSHEdit
)
;
HIDEORSHOW
(
ui
.
UDPEdit
)
;
HIDEORSHOW
(
ui
.
HTTPLabel
)
;
HIDEORSHOW
(
ui
.
RTPLabel
)
;
HIDEORSHOW
(
ui
.
MMSHLabel
)
;
HIDEORSHOW
(
ui
.
UDPLabel
)
;
HIDEORSHOW
(
ui
.
HTTPPortLabel
)
;
HIDEORSHOW
(
ui
.
RTPPortLabel
)
;
HIDEORSHOW
(
ui
.
MMSHPortLabel
)
;
HIDEORSHOW
(
ui
.
UDPPortLabel
)
HIDEORSHOW
(
ui
.
HTTPPort
)
;
HIDEORSHOW
(
ui
.
RTPPort
)
;
HIDEORSHOW
(
ui
.
MMSHPort
)
;
HIDEORSHOW
(
ui
.
UDPPort
)
;
HIDEORSHOW
(
ui
.
RTPPortLabel2
);
HIDEORSHOW
(
ui
.
RTPPort2
);
HIDEORSHOW
(
ui
.
UDPRTPLabel
)
HIDEORSHOW
(
ui
.
sap
);
HIDEORSHOW
(
ui
.
sapName
);
HIDEORSHOW
(
ui
.
sapGroup
);
HIDEORSHOW
(
ui
.
sapGroupLabel
);
HIDEORSHOW
(
ui
.
ttlLabel
);
HIDEORSHOW
(
ui
.
ttl
);
HIDEORSHOW
(
ui
.
soutKeep
);
HIDEORSHOW
(
ui
.
IcecastOutput
);
HIDEORSHOW
(
ui
.
IcecastEdit
);
HIDEORSHOW
(
ui
.
IcecastNamePassEdit
);
HIDEORSHOW
(
ui
.
IcecastMountpointEdit
);
HIDEORSHOW
(
ui
.
IcecastPort
);
HIDEORSHOW
(
ui
.
IcecastLabel
);
HIDEORSHOW
(
ui
.
IcecastPortLabel
);
HIDEORSHOW
(
ui
.
IcecastMountpointLabel
);
HIDEORSHOW
(
ui
.
IcecastNameLabel
);
#undef HIDEORSHOW
if
(
b_transcode_only
)
okButton
->
setText
(
"&Save"
);
else
okButton
->
setText
(
"&Stream"
);
setMinimumHeight
(
500
);
resize
(
width
(),
sizeHint
().
height
()
);
}
void
SoutDialog
::
changeUDPandRTPmess
(
bool
b_udp
)
{
ui
.
RTPEdit
->
setVisible
(
!
b_udp
);
...
...
modules/gui/qt4/dialogs/sout.hpp
View file @
3eb4455a
...
...
@@ -112,17 +112,14 @@ class SoutDialog : public QVLCDialog
{
Q_OBJECT
;
public:
static
SoutDialog
*
getInstance
(
QWidget
*
parent
,
intf_thread_t
*
p_intf
,
bool
transcode_only
)
static
SoutDialog
*
getInstance
(
QWidget
*
parent
,
intf_thread_t
*
p_intf
)
{
if
(
!
instance
)
instance
=
new
SoutDialog
(
parent
,
p_intf
,
transcode_only
);
instance
=
new
SoutDialog
(
parent
,
p_intf
);
else
{
/* Recenter the dialog on the parent */
instance
->
setParent
(
parent
,
Qt
::
Dialog
);
instance
->
b_transcode_only
=
transcode_only
;
instance
->
toggleSout
();
}
return
instance
;
}
...
...
@@ -134,11 +131,9 @@ public:
private:
Ui
::
Sout
ui
;
static
SoutDialog
*
instance
;
SoutDialog
(
QWidget
*
parent
,
intf_thread_t
*
,
bool
_transcode_only
=
false
);
SoutDialog
(
QWidget
*
parent
,
intf_thread_t
*
);
QPushButton
*
okButton
;
QString
mrl
;
bool
b_transcode_only
;
public
slots
:
void
updateMRL
();
...
...
@@ -146,7 +141,6 @@ public slots:
private
slots
:
void
ok
();
void
cancel
();
void
toggleSout
();
void
setOptions
();
void
fileBrowse
();
void
setRawOptions
(
bool
);
...
...
modules/gui/qt4/dialogs/vlm.cpp
View file @
3eb4455a
...
...
@@ -399,7 +399,7 @@ void VLMDialog::selectInput()
void
VLMDialog
::
selectOutput
()
{
SoutDialog
*
s
=
SoutDialog
::
getInstance
(
this
,
p_intf
,
false
);
SoutDialog
*
s
=
SoutDialog
::
getInstance
(
this
,
p_intf
);
if
(
s
->
exec
()
==
QDialog
::
Accepted
)
ui
.
outputLedit
->
setText
(
s
->
getMrl
()
);
}
...
...
modules/gui/qt4/dialogs_provider.cpp
View file @
3eb4455a
...
...
@@ -570,7 +570,7 @@ void DialogsProvider::streamingDialog( QWidget *parent, QString mrl,
const
char
*
psz_option
;
if
(
!
b_transcode_only
)
{
SoutDialog
*
s
=
SoutDialog
::
getInstance
(
parent
,
p_intf
,
b_transcode_only
);
SoutDialog
*
s
=
SoutDialog
::
getInstance
(
parent
,
p_intf
);
if
(
s
->
exec
()
==
QDialog
::
Accepted
)
psz_option
=
qtu
(
s
->
getMrl
()
);
}
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