Commit 68fe87d7 authored by Laurent Aimar's avatar Laurent Aimar

Added INPUT_REPLACE_INFOS and INPUT_MERGE_INFOS.

parent b14d7afa
......@@ -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 */
......
......@@ -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 * );
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment