Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-2-2
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-2-2
Commits
df316b5e
Commit
df316b5e
authored
Jul 26, 2010
by
Rémi Duraffort
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
qt4_vlm: fix #3938 (options must be removed from the input)
parent
48c7e9d1
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
51 additions
and
9 deletions
+51
-9
modules/gui/qt4/dialogs/vlm.cpp
modules/gui/qt4/dialogs/vlm.cpp
+51
-9
No files found.
modules/gui/qt4/dialogs/vlm.cpp
View file @
df316b5e
...
...
@@ -672,9 +672,23 @@ void VLMWrapper::EditBroadcast( const QString& name, const QString& input,
command
=
"setup
\"
"
+
name
+
"
\"
inputdel all"
;
vlm_ExecuteCommand
(
p_vlm
,
qtu
(
command
),
&
message
);
vlm_MessageDelete
(
message
);
command
=
"setup
\"
"
+
name
+
"
\"
input
\"
"
+
input
+
"
\"
"
;
vlm_ExecuteCommand
(
p_vlm
,
qtu
(
command
),
&
message
);
vlm_MessageDelete
(
message
);
if
(
!
input
.
isEmpty
())
{
QStringList
inputs
=
input
.
split
(
":"
,
QString
::
SkipEmptyParts
);
command
=
"setup
\"
"
+
name
+
"
\"
input
\"
"
+
inputs
[
0
].
trimmed
()
+
"
\"
"
;
vlm_ExecuteCommand
(
p_vlm
,
qtu
(
command
),
&
message
);
vlm_MessageDelete
(
message
);
for
(
int
i
=
1
;
i
<
inputs
.
size
();
i
++
)
{
command
=
"setup
\"
"
+
name
+
"
\"
option
\"
"
+
inputs
[
i
].
trimmed
()
+
"
\"
"
;
vlm_ExecuteCommand
(
p_vlm
,
qtu
(
command
),
&
message
);
vlm_MessageDelete
(
message
);
}
}
if
(
!
output
.
isEmpty
()
)
{
command
=
"setup
\"
"
+
name
+
"
\"
output
\"
"
+
output
+
"
\"
"
;
...
...
@@ -745,9 +759,23 @@ void VLMWrapper::EditVod( const QString& name, const QString& input,
const
QString
&
mux
)
{
vlm_message_t
*
message
;
QString
command
=
"setup
\"
"
+
name
+
"
\"
input
\"
"
+
input
+
"
\"
"
;
vlm_ExecuteCommand
(
p_vlm
,
qtu
(
command
),
&
message
);
vlm_MessageDelete
(
message
);
QString
command
;
if
(
!
input
.
isEmpty
())
{
QStringList
inputs
=
input
.
split
(
":"
,
QString
::
SkipEmptyParts
);
command
=
"setup
\"
"
+
name
+
"
\"
input
\"
"
+
inputs
[
0
].
trimmed
()
+
"
\"
"
;
vlm_ExecuteCommand
(
p_vlm
,
qtu
(
command
),
&
message
);
vlm_MessageDelete
(
message
);
for
(
int
i
=
1
;
i
<
inputs
.
size
();
i
++
)
{
command
=
"setup
\"
"
+
name
+
"
\"
option
\"
"
+
inputs
[
i
].
trimmed
()
+
"
\"
"
;
vlm_ExecuteCommand
(
p_vlm
,
qtu
(
command
),
&
message
);
vlm_MessageDelete
(
message
);
}
}
if
(
!
output
.
isEmpty
()
)
{
...
...
@@ -791,9 +819,23 @@ void VLMWrapper::EditSchedule( const QString& name, const QString& input,
const
QString
&
mux
)
{
vlm_message_t
*
message
;
QString
command
=
"setup
\"
"
+
name
+
"
\"
input
\"
"
+
input
+
"
\"
"
;
vlm_ExecuteCommand
(
p_vlm
,
qtu
(
command
),
&
message
);
vlm_MessageDelete
(
message
);
QString
command
;
if
(
!
input
.
isEmpty
())
{
QStringList
inputs
=
input
.
split
(
":"
,
QString
::
SkipEmptyParts
);
command
=
"setup
\"
"
+
name
+
"
\"
input
\"
"
+
inputs
[
0
].
trimmed
()
+
"
\"
"
;
vlm_ExecuteCommand
(
p_vlm
,
qtu
(
command
),
&
message
);
vlm_MessageDelete
(
message
);
for
(
int
i
=
1
;
i
<
inputs
.
size
();
i
++
)
{
command
=
"setup
\"
"
+
name
+
"
\"
option
\"
"
+
inputs
[
i
].
trimmed
()
+
"
\"
"
;
vlm_ExecuteCommand
(
p_vlm
,
qtu
(
command
),
&
message
);
vlm_MessageDelete
(
message
);
}
}
if
(
!
output
.
isEmpty
()
)
{
...
...
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