Commit 4e4d3ab5 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

es_out: add callback to post sub-items

In the long term, there should really be no need for demux and es_out
when parsing a playlist. But for now, add a "proper" callback for the
directory demux to report sub-items.
parent 0521d5ae
......@@ -94,6 +94,8 @@ enum es_out_query_e
ES_OUT_GET_PCR_SYSTEM, /* arg1=mtime_t *, arg2=mtime_t * res=can fail */
ES_OUT_MODIFY_PCR_SYSTEM, /* arg1=int is_absolute, arg2=mtime_t, res=can fail */
ES_OUT_POST_SUBNODE, /* arg1=input_item_node_t *, res=can fail */
/* First value usable for private control */
ES_OUT_PRIVATE_START = 0x10000,
};
......
......@@ -2765,6 +2765,13 @@ static int EsOutControlLocked( es_out_t *out, int i_query, va_list args )
return VLC_SUCCESS;
}
case ES_OUT_POST_SUBNODE:
{
input_item_node_t *node = va_arg(args, input_item_node_t *);
input_item_node_PostAndDelete(node);
return VLC_SUCCESS;
}
default:
msg_Err( p_sys->p_input, "unknown query in es_out_Control" );
return VLC_EGENERIC;
......
......@@ -723,6 +723,7 @@ static int ControlLocked( es_out_t *p_out, int i_query, va_list args )
return VLC_EGENERIC;
/* fall through */
case ES_OUT_GET_GROUP_FORCED:
case ES_OUT_POST_SUBNODE:
return es_out_vaControl( p_sys->p_out, i_query, args );
case ES_OUT_MODIFY_PCR_SYSTEM:
......
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