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
68fe87d7
Commit
68fe87d7
authored
Feb 05, 2010
by
Laurent Aimar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added INPUT_REPLACE_INFOS and INPUT_MERGE_INFOS.
parent
b14d7afa
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
0 deletions
+16
-0
include/vlc_input.h
include/vlc_input.h
+2
-0
src/input/control.c
src/input/control.c
+14
-0
No files found.
include/vlc_input.h
View file @
68fe87d7
...
...
@@ -473,6 +473,8 @@ enum input_query_e
/* Meta datas */
INPUT_ADD_INFO
,
/* arg1= char* arg2= char* arg3=... res=can fail */
INPUT_REPLACE_INFOS
,
/* arg1= info_category_t * res=cannot fail */
INPUT_MERGE_INFOS
,
/* arg1= info_category_t * res=cannot fail */
INPUT_GET_INFO
,
/* arg1= char* arg2= char* arg3= char** res=can fail */
INPUT_DEL_INFO
,
/* arg1= char* arg2= char* res=can fail */
INPUT_SET_NAME
,
/* arg1= char* res=can fail */
...
...
src/input/control.c
View file @
68fe87d7
...
...
@@ -155,6 +155,20 @@ int input_vaControl( input_thread_t *p_input, int i_query, va_list args )
input_SendEventMetaInfo
(
p_input
);
return
i_ret
;
}
case
INPUT_REPLACE_INFOS
:
case
INPUT_MERGE_INFOS
:
{
info_category_t
*
p_cat
=
va_arg
(
args
,
info_category_t
*
);
if
(
i_query
==
INPUT_REPLACE_INFOS
)
input_item_ReplaceInfos
(
p_input
->
p
->
p_item
,
p_cat
);
else
input_item_MergeInfos
(
p_input
->
p
->
p_item
,
p_cat
);
if
(
!
p_input
->
b_preparsing
)
input_SendEventMetaInfo
(
p_input
);
return
VLC_SUCCESS
;
}
case
INPUT_DEL_INFO
:
{
char
*
psz_cat
=
(
char
*
)
va_arg
(
args
,
char
*
);
...
...
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