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
bcec187b
Commit
bcec187b
authored
Nov 07, 2004
by
Antoine Cellerier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* added SAP group announcing support in the sout dialog
parent
b851c88a
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
36 additions
and
5 deletions
+36
-5
modules/gui/wxwindows/streamout.cpp
modules/gui/wxwindows/streamout.cpp
+33
-4
modules/gui/wxwindows/wxwindows.h
modules/gui/wxwindows/wxwindows.h
+3
-1
No files found.
modules/gui/wxwindows/streamout.cpp
View file @
bcec187b
...
...
@@ -72,7 +72,7 @@ enum
AudioTranscEnable_Event
,
AudioTranscCodec_Event
,
AudioTranscBitrate_Event
,
AudioTranscChans_Event
,
SAPMisc_Event
,
SLPMisc_Event
,
AnnounceAddr_Event
SAPMisc_Event
,
SLPMisc_Event
,
Announce
Group_Event
,
Announce
Addr_Event
};
BEGIN_EVENT_TABLE
(
SoutDialog
,
wxDialog
)
...
...
@@ -139,6 +139,7 @@ BEGIN_EVENT_TABLE(SoutDialog, wxDialog)
/* Events generated by the misc panel */
EVT_CHECKBOX
(
SAPMisc_Event
,
SoutDialog
::
OnSAPMiscChange
)
EVT_CHECKBOX
(
SLPMisc_Event
,
SoutDialog
::
OnSLPMiscChange
)
EVT_TEXT
(
AnnounceGroup_Event
,
SoutDialog
::
OnAnnounceGroupChange
)
EVT_TEXT
(
AnnounceAddr_Event
,
SoutDialog
::
OnAnnounceAddrChange
)
END_EVENT_TABLE
()
...
...
@@ -363,6 +364,12 @@ void SoutDialog::UpdateMRL()
if
(
sap_checkbox
->
IsChecked
()
)
{
dup_opts
+=
wxT
(
",sap"
);
if
(
!
announce_group
->
GetLineText
(
0
).
IsEmpty
()
)
{
dup_opts
+=
wxT
(
",group=
\"
"
);
dup_opts
+=
announce_group
->
GetLineText
(
0
);
dup_opts
+=
wxT
(
"
\"
"
);
}
if
(
!
announce_addr
->
GetLineText
(
0
).
IsEmpty
()
)
{
dup_opts
+=
wxT
(
",name=
\"
"
);
...
...
@@ -537,13 +544,21 @@ wxPanel *SoutDialog::MiscPanel( wxWindow* parent )
/* Announce Row */
misc_subpanels
[
ANN_MISC_SOUT
]
=
new
wxPanel
(
panel
,
-
1
);
wxFlexGridSizer
*
subpanel_sizer
=
new
wxFlexGridSizer
(
4
,
4
,
20
);
wxFlexGridSizer
*
subpanel_sizer
=
new
wxFlexGridSizer
(
3
,
4
,
20
);
wxFlexGridSizer
*
subpanel_sub_sizer
=
new
wxFlexGridSizer
(
2
,
4
,
20
);
sap_checkbox
=
new
wxCheckBox
(
misc_subpanels
[
ANN_MISC_SOUT
],
SAPMisc_Event
,
wxU
(
_
(
"SAP announce"
))
);
slp_checkbox
=
new
wxCheckBox
(
misc_subpanels
[
ANN_MISC_SOUT
],
SLPMisc_Event
,
wxU
(
_
(
"SLP announce"
))
);
wxStaticText
*
label_g
=
new
wxStaticText
(
misc_subpanels
[
ANN_MISC_SOUT
],
-
1
,
wxU
(
_
(
"Group name"
))
);
announce_group
=
new
wxTextCtrl
(
misc_subpanels
[
ANN_MISC_SOUT
],
AnnounceGroup_Event
,
wxT
(
""
),
wxDefaultPosition
,
wxSize
(
200
,
-
1
),
wxTE_PROCESS_ENTER
);
wxStaticText
*
label
=
new
wxStaticText
(
misc_subpanels
[
ANN_MISC_SOUT
],
-
1
,
wxU
(
_
(
"Channel name"
))
);
announce_addr
=
new
wxTextCtrl
(
misc_subpanels
[
ANN_MISC_SOUT
],
...
...
@@ -555,8 +570,15 @@ wxPanel *SoutDialog::MiscPanel( wxWindow* parent )
wxALIGN_RIGHT
|
wxALIGN_CENTER_VERTICAL
);
subpanel_sizer
->
Add
(
slp_checkbox
,
0
,
wxALIGN_RIGHT
|
wxALIGN_CENTER_VERTICAL
);
subpanel_sizer
->
Add
(
label
,
0
,
wxALIGN_RIGHT
|
wxALIGN_CENTER_VERTICAL
);
subpanel_sizer
->
Add
(
announce_addr
,
1
,
wxEXPAND
|
subpanel_sub_sizer
->
Add
(
label_g
,
0
,
wxALIGN_RIGHT
|
wxALIGN_CENTER_VERTICAL
);
subpanel_sub_sizer
->
Add
(
announce_group
,
1
,
wxEXPAND
|
wxALIGN_LEFT
|
wxALIGN_CENTER_VERTICAL
);
subpanel_sub_sizer
->
Add
(
label
,
0
,
wxALIGN_RIGHT
|
wxALIGN_CENTER_VERTICAL
);
subpanel_sub_sizer
->
Add
(
announce_addr
,
1
,
wxEXPAND
|
wxALIGN_LEFT
|
wxALIGN_CENTER_VERTICAL
);
subpanel_sizer
->
Add
(
subpanel_sub_sizer
,
1
,
wxEXPAND
|
wxALIGN_LEFT
|
wxALIGN_CENTER_VERTICAL
);
misc_subpanels
[
ANN_MISC_SOUT
]
->
SetSizerAndFit
(
subpanel_sizer
);
...
...
@@ -569,6 +591,7 @@ wxPanel *SoutDialog::MiscPanel( wxWindow* parent )
/* Update misc panel */
misc_subpanels
[
ANN_MISC_SOUT
]
->
Disable
();
announce_group
->
Disable
();
announce_addr
->
Disable
();
return
panel
;
...
...
@@ -869,6 +892,7 @@ void SoutDialog::OnSAPMiscChange( wxCommandEvent& event )
{
announce_addr
->
Enable
(
event
.
GetInt
()
);
}
announce_group
->
Enable
(
event
.
GetInt
()
);
UpdateMRL
();
}
...
...
@@ -889,6 +913,11 @@ void SoutDialog::OnAnnounceAddrChange( wxCommandEvent& WXUNUSED(event) )
UpdateMRL
();
}
void
SoutDialog
::
OnAnnounceGroupChange
(
wxCommandEvent
&
WXUNUSED
(
event
)
)
{
UpdateMRL
();
}
/*****************************************************************************
* File access output event methods.
*****************************************************************************/
...
...
modules/gui/wxwindows/wxwindows.h
View file @
bcec187b
...
...
@@ -566,8 +566,9 @@ private:
void
OnNetChange
(
wxCommandEvent
&
event
);
/* Event specific to the announce address */
void
OnAnnounceGroupChange
(
wxCommandEvent
&
event
);
void
OnAnnounceAddrChange
(
wxCommandEvent
&
event
);
/* Event handlers for the encapsulation panel */
void
OnEncapsulationChange
(
wxCommandEvent
&
event
);
...
...
@@ -603,6 +604,7 @@ private:
wxPanel
*
misc_subpanels
[
MISC_SOUT_NUM
];
wxCheckBox
*
sap_checkbox
;
wxCheckBox
*
slp_checkbox
;
wxTextCtrl
*
announce_group
;
wxTextCtrl
*
announce_addr
;
/* Controls for the encapsulation */
...
...
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