Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Open sidebar
Steve Lhomme
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