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
7cc42f91
Commit
7cc42f91
authored
Sep 06, 2007
by
Jean-Baptiste Kempf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Qt4 - Sout: UDP => RTP.
parent
b2a21c15
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
33 additions
and
33 deletions
+33
-33
modules/gui/qt4/dialogs/sout.cpp
modules/gui/qt4/dialogs/sout.cpp
+17
-17
modules/gui/qt4/ui/sout.ui
modules/gui/qt4/ui/sout.ui
+16
-16
No files found.
modules/gui/qt4/dialogs/sout.cpp
View file @
7cc42f91
...
...
@@ -95,9 +95,9 @@ SoutDialog::SoutDialog( QWidget *parent, intf_thread_t *_p_intf,
#define CC( x ) CONNECT( ui.x, currentIndexChanged( int ), this, updateMRL() );
// /* Output */
CB
(
fileOutput
);
CB
(
HTTPOutput
);
CB
(
localOutput
);
CB
(
UD
POutput
);
CB
(
MMSHOutput
);
CB
(
rawInput
);
CT
(
fileEdit
);
CT
(
HTTPEdit
);
CT
(
UD
PEdit
);
CT
(
MMSHEdit
);
CS
(
HTTPPort
);
CS
(
UD
PPort
);
CS
(
MMSHPort
);
CB
(
RT
POutput
);
CB
(
MMSHOutput
);
CB
(
rawInput
);
CT
(
fileEdit
);
CT
(
HTTPEdit
);
CT
(
RT
PEdit
);
CT
(
MMSHEdit
);
CS
(
HTTPPort
);
CS
(
RT
PPort
);
CS
(
MMSHPort
);
// /* Transcode */
CC
(
vCodecBox
);
CC
(
subsCodecBox
);
CC
(
aCodecBox
)
;
CB
(
transcodeVideo
);
CB
(
transcodeAudio
);
CB
(
transcodeSubs
);
...
...
@@ -230,11 +230,11 @@ void SoutDialog::setOptions()
void
SoutDialog
::
toggleSout
()
{
//Toggle all the streaming options.
TOGGLEV
(
ui
.
HTTPOutput
)
;
TOGGLEV
(
ui
.
UD
POutput
)
;
TOGGLEV
(
ui
.
MMSHOutput
)
;
TOGGLEV
(
ui
.
HTTPEdit
)
;
TOGGLEV
(
ui
.
UD
PEdit
)
;
TOGGLEV
(
ui
.
MMSHEdit
)
;
TOGGLEV
(
ui
.
HTTPLabel
)
;
TOGGLEV
(
ui
.
UD
PLabel
)
;
TOGGLEV
(
ui
.
MMSHLabel
)
;
TOGGLEV
(
ui
.
HTTPPortLabel
)
;
TOGGLEV
(
ui
.
UD
PPortLabel
)
;
TOGGLEV
(
ui
.
MMSHPortLabel
)
;
TOGGLEV
(
ui
.
HTTPPort
)
;
TOGGLEV
(
ui
.
UD
PPort
)
;
TOGGLEV
(
ui
.
MMSHPort
)
;
TOGGLEV
(
ui
.
HTTPOutput
)
;
TOGGLEV
(
ui
.
RT
POutput
)
;
TOGGLEV
(
ui
.
MMSHOutput
)
;
TOGGLEV
(
ui
.
HTTPEdit
)
;
TOGGLEV
(
ui
.
RT
PEdit
)
;
TOGGLEV
(
ui
.
MMSHEdit
)
;
TOGGLEV
(
ui
.
HTTPLabel
)
;
TOGGLEV
(
ui
.
RT
PLabel
)
;
TOGGLEV
(
ui
.
MMSHLabel
)
;
TOGGLEV
(
ui
.
HTTPPortLabel
)
;
TOGGLEV
(
ui
.
RT
PPortLabel
)
;
TOGGLEV
(
ui
.
MMSHPortLabel
)
;
TOGGLEV
(
ui
.
HTTPPort
)
;
TOGGLEV
(
ui
.
RT
PPort
)
;
TOGGLEV
(
ui
.
MMSHPort
)
;
TOGGLEV
(
ui
.
sap
);
TOGGLEV
(
ui
.
sapName
);
TOGGLEV
(
ui
.
sapGroup
);
TOGGLEV
(
ui
.
sapGroupLabel
);
...
...
@@ -267,7 +267,7 @@ void SoutDialog::updateMRL()
sout
.
b_file
=
ui
.
fileOutput
->
isChecked
();
sout
.
b_http
=
ui
.
HTTPOutput
->
isChecked
();
sout
.
b_mms
=
ui
.
MMSHOutput
->
isChecked
();
sout
.
b_
udp
=
ui
.
UD
POutput
->
isChecked
();
sout
.
b_
rtp
=
ui
.
RT
POutput
->
isChecked
();
sout
.
b_sap
=
ui
.
sap
->
isChecked
();
sout
.
b_all_es
=
ui
.
soutAll
->
isChecked
();
sout
.
psz_vcodec
=
strdup
(
qtu
(
ui
.
vCodecBox
->
itemData
(
ui
.
vCodecBox
->
currentIndex
()
).
toString
()
)
);
...
...
@@ -276,10 +276,10 @@ void SoutDialog::updateMRL()
sout
.
psz_file
=
strdup
(
qtu
(
ui
.
fileEdit
->
text
()
)
);
sout
.
psz_http
=
strdup
(
qtu
(
ui
.
HTTPEdit
->
text
()
)
);
sout
.
psz_mms
=
strdup
(
qtu
(
ui
.
MMSHEdit
->
text
()
)
);
sout
.
psz_
udp
=
strdup
(
qtu
(
ui
.
UD
PEdit
->
text
()
)
);
sout
.
psz_
rtp
=
strdup
(
qtu
(
ui
.
RT
PEdit
->
text
()
)
);
sout
.
i_http
=
ui
.
HTTPPort
->
value
();
sout
.
i_mms
=
ui
.
MMSHPort
->
value
();
sout
.
i_
udp
=
ui
.
UD
PPort
->
value
();
sout
.
i_
rtp
=
ui
.
RT
PPort
->
value
();
sout
.
i_ab
=
ui
.
aBitrateSpin
->
value
();
sout
.
i_vb
=
ui
.
vBitrateSpin
->
value
();
sout
.
i_channels
=
ui
.
aChannelsSpin
->
value
();
...
...
@@ -297,7 +297,7 @@ void SoutDialog::updateMRL()
counter += 1; \
if ( sout.b_mms ) \
counter += 1; \
if ( sout.b_
ud
p ) \
if ( sout.b_
rt
p ) \
counter += 1; \
}
...
...
@@ -357,7 +357,7 @@ COUNT()
mrl
.
append
(
"}"
);
}
if
(
sout
.
b_local
||
sout
.
b_file
||
sout
.
b_http
||
sout
.
b_mms
||
sout
.
b_
ud
p
)
if
(
sout
.
b_local
||
sout
.
b_file
||
sout
.
b_http
||
sout
.
b_mms
||
sout
.
b_
rt
p
)
{
#define ISMORE() if ( more ) mrl.append( "," );
...
...
@@ -430,16 +430,16 @@ COUNT()
more
=
true
;
}
if
(
sout
.
b_
ud
p
)
if
(
sout
.
b_
rt
p
)
{
ISMORE
();
ATLEASTONE
()
mrl
.
append
(
"rtp{mux="
);
mrl
.
append
(
sout
.
psz_mux
);
mrl
.
append
(
",dst="
);
mrl
.
append
(
sout
.
psz_
ud
p
);
mrl
.
append
(
sout
.
psz_
rt
p
);
mrl
.
append
(
":"
);
mrl
.
append
(
QString
::
number
(
sout
.
i_
ud
p
,
10
)
);
mrl
.
append
(
QString
::
number
(
sout
.
i_
rt
p
,
10
)
);
if
(
sout
.
b_sap
)
{
mrl
.
append
(
",sap,"
);
...
...
@@ -466,6 +466,6 @@ COUNT()
ui
.
mrlEdit
->
setText
(
mrl
);
free
(
sout
.
psz_acodec
);
free
(
sout
.
psz_vcodec
);
free
(
sout
.
psz_scodec
);
free
(
sout
.
psz_file
);
free
(
sout
.
psz_http
);
free
(
sout
.
psz_mms
);
free
(
sout
.
psz_
ud
p
);
free
(
sout
.
psz_mux
);
free
(
sout
.
psz_
rt
p
);
free
(
sout
.
psz_mux
);
free
(
sout
.
psz_name
);
free
(
sout
.
psz_group
);
}
modules/gui/qt4/ui/sout.ui
View file @
7cc42f91
...
...
@@ -190,14 +190,14 @@
</widget>
</item>
<item row="4" column="0" >
<widget class="QCheckBox" name="
UD
POutput" >
<widget class="QCheckBox" name="
RT
POutput" >
<property name="text" >
<string>
UD
P</string>
<string>
RT
P</string>
</property>
</widget>
</item>
<item row="4" column="1" >
<widget class="QLabel" name="
UD
PLabel" >
<widget class="QLabel" name="
RT
PLabel" >
<property name="enabled" >
<bool>false</bool>
</property>
...
...
@@ -207,7 +207,7 @@
</widget>
</item>
<item row="4" column="3" >
<widget class="QLabel" name="
UD
PPortLabel" >
<widget class="QLabel" name="
RT
PPortLabel" >
<property name="enabled" >
<bool>false</bool>
</property>
...
...
@@ -220,7 +220,7 @@
</widget>
</item>
<item row="4" column="2" >
<widget class="QLineEdit" name="
UD
PEdit" >
<widget class="QLineEdit" name="
RT
PEdit" >
<property name="enabled" >
<bool>false</bool>
</property>
...
...
@@ -252,7 +252,7 @@
</widget>
</item>
<item row="4" column="4" >
<widget class="QSpinBox" name="
UD
PPort" >
<widget class="QSpinBox" name="
RT
PPort" >
<property name="enabled" >
<bool>false</bool>
</property>
...
...
@@ -722,7 +722,7 @@
<resources/>
<connections>
<connection>
<sender>
UD
POutput</sender>
<sender>
RT
POutput</sender>
<signal>clicked(bool)</signal>
<receiver>sap</receiver>
<slot>setEnabled(bool)</slot>
...
...
@@ -738,9 +738,9 @@
</hints>
</connection>
<connection>
<sender>
UD
POutput</sender>
<sender>
RT
POutput</sender>
<signal>clicked(bool)</signal>
<receiver>
UD
PLabel</receiver>
<receiver>
RT
PLabel</receiver>
<slot>setEnabled(bool)</slot>
<hints>
<hint type="sourcelabel" >
...
...
@@ -754,9 +754,9 @@
</hints>
</connection>
<connection>
<sender>
UD
POutput</sender>
<sender>
RT
POutput</sender>
<signal>clicked(bool)</signal>
<receiver>
UD
PEdit</receiver>
<receiver>
RT
PEdit</receiver>
<slot>setEnabled(bool)</slot>
<hints>
<hint type="sourcelabel" >
...
...
@@ -818,9 +818,9 @@
</hints>
</connection>
<connection>
<sender>
UD
POutput</sender>
<sender>
RT
POutput</sender>
<signal>clicked(bool)</signal>
<receiver>
UD
PPortLabel</receiver>
<receiver>
RT
PPortLabel</receiver>
<slot>setEnabled(bool)</slot>
<hints>
<hint type="sourcelabel" >
...
...
@@ -834,9 +834,9 @@
</hints>
</connection>
<connection>
<sender>
UD
POutput</sender>
<sender>
RT
POutput</sender>
<signal>clicked(bool)</signal>
<receiver>
UD
PPort</receiver>
<receiver>
RT
PPort</receiver>
<slot>setEnabled(bool)</slot>
<hints>
<hint type="sourcelabel" >
...
...
@@ -1076,7 +1076,7 @@
<connection>
<sender>rawInput</sender>
<signal>clicked(bool)</signal>
<receiver>
UD
POutput</receiver>
<receiver>
RT
POutput</receiver>
<slot>setDisabled(bool)</slot>
<hints>
<hint type="sourcelabel" >
...
...
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