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
3907a932
Commit
3907a932
authored
Feb 20, 2005
by
Yoann Peronneau
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* src/misc/vlm.c: addded 'inputdel' setup command
parent
2862cb06
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
30 additions
and
1 deletion
+30
-1
src/misc/vlm.c
src/misc/vlm.c
+30
-1
No files found.
src/misc/vlm.c
View file @
3907a932
...
@@ -981,6 +981,35 @@ int vlm_MediaSetup( vlm_t *vlm, vlm_media_t *media, char *psz_cmd,
...
@@ -981,6 +981,35 @@ int vlm_MediaSetup( vlm_t *vlm, vlm_media_t *media, char *psz_cmd,
TAB_APPEND
(
media
->
i_input
,
media
->
input
,
input
);
TAB_APPEND
(
media
->
i_input
,
media
->
input
,
input
);
}
}
else
if
(
!
strcmp
(
psz_cmd
,
"inputdel"
)
)
{
char
*
input
;
int
i
;
if
(
psz_value
!=
NULL
&&
strlen
(
psz_value
)
>
1
&&
(
psz_value
[
0
]
==
'\''
||
psz_value
[
0
]
==
'\"'
)
&&
(
psz_value
[
strlen
(
psz_value
)
-
1
]
==
'\''
||
psz_value
[
strlen
(
psz_value
)
-
1
]
==
'\"'
)
)
{
input
=
malloc
(
strlen
(
psz_value
)
-
1
);
memcpy
(
input
,
psz_value
+
1
,
strlen
(
psz_value
)
-
2
);
input
[
strlen
(
psz_value
)
-
2
]
=
'\0'
;
}
else
{
input
=
strdup
(
psz_value
);
}
for
(
i
=
0
;
i
<
media
->
i_input
;
i
++
)
{
if
(
!
strcmp
(
input
,
media
->
input
[
i
]
)
)
{
TAB_REMOVE
(
media
->
i_input
,
media
->
input
,
media
->
input
[
i
]
);
break
;
}
}
}
else
if
(
!
strcmp
(
psz_cmd
,
"output"
)
)
else
if
(
!
strcmp
(
psz_cmd
,
"output"
)
)
{
{
if
(
media
->
psz_output
!=
NULL
)
if
(
media
->
psz_output
!=
NULL
)
...
@@ -1837,7 +1866,7 @@ static vlm_message_t *vlm_Help( vlm_t *vlm, char *psz_filter )
...
@@ -1837,7 +1866,7 @@ static vlm_message_t *vlm_Help( vlm_t *vlm, char *psz_filter )
MessageAddChild
(
"load (config_file)"
);
MessageAddChild
(
"load (config_file)"
);
message_child
=
MessageAdd
(
"Media Proprieties Syntax:"
);
message_child
=
MessageAdd
(
"Media Proprieties Syntax:"
);
MessageAddChild
(
"input (input_name)"
);
MessageAddChild
(
"input
|inputdel
(input_name)"
);
MessageAddChild
(
"output (output_name)"
);
MessageAddChild
(
"output (output_name)"
);
MessageAddChild
(
"enabled|disabled"
);
MessageAddChild
(
"enabled|disabled"
);
MessageAddChild
(
"loop|unloop (broadcast only)"
);
MessageAddChild
(
"loop|unloop (broadcast only)"
);
...
...
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