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
b9e8991c
Commit
b9e8991c
authored
Aug 01, 2005
by
Antoine Cellerier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add TTL option in streamout dialog. Patch by seingier françois plus some
layout and initial value fixes.
parent
1e7d6ae5
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
22 additions
and
5 deletions
+22
-5
modules/gui/wxwindows/streamout.cpp
modules/gui/wxwindows/streamout.cpp
+19
-4
modules/gui/wxwindows/wxwindows.h
modules/gui/wxwindows/wxwindows.h
+3
-1
No files found.
modules/gui/wxwindows/streamout.cpp
View file @
b9e8991c
...
...
@@ -564,8 +564,10 @@ wxPanel *SoutDialog::MiscPanel( wxWindow* parent )
/* Announce Row */
misc_subpanels
[
ANN_MISC_SOUT
]
=
new
wxPanel
(
panel
,
-
1
);
misc_subpanels
[
TTL_MISC_SOUT
]
=
new
wxPanel
(
panel
,
-
1
);
wxFlexGridSizer
*
subpanel_sizer
=
new
wxFlexGridSizer
(
3
,
4
,
20
);
wxFlexGridSizer
*
subpanel_sub_sizer
=
new
wxFlexGridSizer
(
2
,
4
,
20
);
wxFlexGridSizer
*
subpanel2_sizer
=
new
wxFlexGridSizer
(
3
,
4
,
20
);
sap_checkbox
=
new
wxCheckBox
(
misc_subpanels
[
ANN_MISC_SOUT
],
SAPMisc_Event
,
wxU
(
_
(
"SAP announce"
))
);
...
...
@@ -586,6 +588,11 @@ wxPanel *SoutDialog::MiscPanel( wxWindow* parent )
wxT
(
""
),
wxDefaultPosition
,
wxSize
(
200
,
-
1
),
wxTE_PROCESS_ENTER
);
wxStaticText
*
ttl_label
=
new
wxStaticText
(
misc_subpanels
[
TTL_MISC_SOUT
],
-
1
,
wxU
(
_
(
"Time-To-Live (TTL)"
))
);
ttl_spin
=
new
wxSpinCtrl
(
misc_subpanels
[
TTL_MISC_SOUT
],
-
1
,
wxEmptyString
,
wxDefaultPosition
,
wxDefaultSize
,
0
,
1
,
255
,
config_GetInt
(
p_intf
,
"ttl"
)
);
subpanel_sizer
->
Add
(
sap_checkbox
,
0
,
wxALIGN_RIGHT
|
wxALIGN_CENTER_VERTICAL
);
subpanel_sizer
->
Add
(
slp_checkbox
,
0
,
...
...
@@ -601,16 +608,23 @@ wxPanel *SoutDialog::MiscPanel( wxWindow* parent )
subpanel_sizer
->
Add
(
subpanel_sub_sizer
,
1
,
wxEXPAND
|
wxALIGN_LEFT
|
wxALIGN_CENTER_VERTICAL
);
sout_all_checkbox
=
new
wxCheckBox
(
misc_subpanels
[
TTL_MISC_SOUT
],
SoutAll_Event
,
wxU
(
_
(
"Select all elementary streams"
))
);
subpanel2_sizer
->
Add
(
sout_all_checkbox
,
1
,
wxALIGN_LEFT
|
wxALIGN_CENTER_VERTICAL
|
wxLEFT
,
5
);
subpanel2_sizer
->
Add
(
ttl_label
,
0
,
wxALIGN_RIGHT
|
wxALIGN_CENTER_VERTICAL
);
subpanel2_sizer
->
Add
(
ttl_spin
,
0
,
wxALIGN_RIGHT
|
wxALIGN_CENTER_VERTICAL
);
misc_subpanels
[
ANN_MISC_SOUT
]
->
SetSizerAndFit
(
subpanel_sizer
);
misc_subpanels
[
TTL_MISC_SOUT
]
->
SetSizerAndFit
(
subpanel2_sizer
);
/* Stuff everything into the main panel */
panel_sizer
->
Add
(
misc_subpanels
[
ANN_MISC_SOUT
],
1
,
wxALIGN_LEFT
|
wxALIGN_CENTER_VERTICAL
|
wxLEFT
,
5
);
sout_all_checkbox
=
new
wxCheckBox
(
panel
,
SoutAll_Event
,
wxU
(
_
(
"Select all elementary streams"
))
);
panel_sizer
->
Add
(
sout_all_checkbox
,
1
,
wxALIGN_LEFT
|
wxALIGN_CENTER_VERTICAL
|
wxLEFT
,
5
);
panel_sizer
->
Add
(
misc_subpanels
[
TTL_MISC_SOUT
],
1
,
wxALIGN_LEFT
|
wxALIGN_CENTER_VERTICAL
|
wxALL
,
5
);
panel
->
SetSizerAndFit
(
panel_sizer
);
...
...
@@ -902,6 +916,7 @@ wxPanel *SoutDialog::TranscodingPanel( wxWindow* parent )
void
SoutDialog
::
OnOk
(
wxCommandEvent
&
WXUNUSED
(
event
)
)
{
mrl_combo
->
Append
(
mrl_combo
->
GetValue
()
);
config_PutInt
(
p_intf
,
"ttl"
,
ttl_spin
->
GetValue
());
EndModal
(
wxID_OK
);
}
...
...
modules/gui/wxwindows/wxwindows.h
View file @
b9e8991c
...
...
@@ -610,6 +610,7 @@ enum
enum
{
ANN_MISC_SOUT
=
0
,
TTL_MISC_SOUT
,
MISC_SOUT_NUM
};
...
...
@@ -678,13 +679,14 @@ private:
wxSpinCtrl
*
net_ports
[
ACCESS_OUT_NUM
];
wxTextCtrl
*
net_addrs
[
ACCESS_OUT_NUM
];
/* Controls for the SAP announces */
/* Controls for the SAP announces
and TTL setting
*/
wxPanel
*
misc_panel
;
wxPanel
*
misc_subpanels
[
MISC_SOUT_NUM
];
wxCheckBox
*
sap_checkbox
;
wxCheckBox
*
slp_checkbox
;
wxTextCtrl
*
announce_group
;
wxTextCtrl
*
announce_addr
;
wxSpinCtrl
*
ttl_spin
;
/* Controls for the encapsulation */
wxPanel
*
encapsulation_panel
;
...
...
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