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
11104bf4
Commit
11104bf4
authored
Aug 23, 2012
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Qt4: add SAP session name to RTP/AVP and RTP/TS destinations
parent
59243239
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
25 additions
and
12 deletions
+25
-12
modules/gui/qt4/components/sout/sout_widgets.cpp
modules/gui/qt4/components/sout/sout_widgets.cpp
+23
-11
modules/gui/qt4/components/sout/sout_widgets.hpp
modules/gui/qt4/components/sout/sout_widgets.hpp
+2
-1
No files found.
modules/gui/qt4/components/sout/sout_widgets.cpp
View file @
11104bf4
...
...
@@ -344,7 +344,7 @@ QString UDPDestBox::getMRL( const QString& mux )
RTPDestBox
::
RTPDestBox
(
QWidget
*
_parent
,
const
char
*
_mux
)
:
VirtualDestBox
(
_parent
),
mux
(
_mux
)
:
VirtualDestBox
(
_parent
),
mux
(
qfu
(
_mux
)
)
{
QGridLayout
*
layout
=
new
QGridLayout
(
this
);
...
...
@@ -354,37 +354,49 @@ RTPDestBox::RTPDestBox( QWidget *_parent, const char *_mux )
layout
->
addWidget
(
rtpOutput
,
0
,
0
,
1
,
-
1
);
QLabel
*
RTPLabel
=
new
QLabel
(
qtr
(
"Address"
),
this
);
QLabel
*
RTPPortLabel
=
new
QLabel
(
qtr
(
"Base port"
),
this
);
layout
->
addWidget
(
RTPLabel
,
1
,
0
,
1
,
1
);
layout
->
addWidget
(
RTPPortLabel
,
2
,
0
,
1
,
1
);
RTPEdit
=
new
QLineEdit
(
this
);
layout
->
addWidget
(
RTPLabel
,
1
,
0
,
1
,
1
);
layout
->
addWidget
(
RTPEdit
,
1
,
1
,
1
,
1
);
QLabel
*
RTPPortLabel
=
new
QLabel
(
qtr
(
"Base port"
),
this
);
RTPPort
=
new
QSpinBox
(
this
);
RTPPort
->
setMaximumSize
(
QSize
(
90
,
16777215
));
RTPPort
->
setAlignment
(
Qt
::
AlignRight
|
Qt
::
AlignTrailing
|
Qt
::
AlignVCenter
);
RTPPort
->
setMinimum
(
1
);
RTPPort
->
setMaximum
(
65535
);
RTPPort
->
setValue
(
5004
);
layout
->
addWidget
(
RTPEdit
,
1
,
1
,
1
,
1
);
layout
->
addWidget
(
RTPPortLabel
,
2
,
0
,
1
,
1
);
layout
->
addWidget
(
RTPPort
,
2
,
1
,
1
,
1
);
CS
(
RTPPort
);
QLabel
*
SAPNameLabel
=
new
QLabel
(
qtr
(
"Stream name"
),
this
);
SAPName
=
new
QLineEdit
(
this
);
layout
->
addWidget
(
SAPNameLabel
,
3
,
0
,
1
,
1
);
layout
->
addWidget
(
SAPName
,
3
,
1
,
1
,
1
);
CT
(
RTPEdit
);
CS
(
RTPPort
);
CT
(
SAPName
);
}
QString
RTPDestBox
::
getMRL
(
const
QString
&
)
{
if
(
RTPEdit
->
text
().
isEmpty
()
)
return
""
;
QString
addr
=
RTPEdit
->
text
();
QString
name
=
SAPName
->
text
();
if
(
addr
.
isEmpty
()
)
return
qfu
(
""
);
SoutMrl
m
;
m
.
begin
(
"rtp"
);
m
.
option
(
"dst"
,
RTPEdit
->
text
()
);
m
.
option
(
"port"
,
RTPPort
->
value
()
);
/* mp4-mux ain't usable in rtp-output either */
if
(
mux
!=
NULL
)
m
.
option
(
"mux"
,
qfu
(
mux
)
);
if
(
!
mux
.
isEmpty
()
)
m
.
option
(
"mux"
,
mux
);
if
(
!
name
.
isEmpty
()
)
{
m
.
option
(
"sap"
);
m
.
option
(
"name"
,
name
);
}
m
.
end
();
return
m
.
getMrl
();
...
...
modules/gui/qt4/components/sout/sout_widgets.hpp
View file @
11104bf4
...
...
@@ -121,7 +121,8 @@ class RTPDestBox: public VirtualDestBox
private:
QLineEdit
*
RTPEdit
;
QSpinBox
*
RTPPort
;
const
char
*
mux
;
QLineEdit
*
SAPName
;
QString
mux
;
};
class
ICEDestBox
:
public
VirtualDestBox
...
...
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