Commit cd0055d1 authored by Jean-Paul Saman's avatar Jean-Paul Saman

dbus: fix crash in GetInputEsMeta

parent 391267b1
......@@ -2246,7 +2246,7 @@ static int GetInputEsMeta( input_item_t * p_item, int32_t i_es,
dbus_message_iter_open_container( args, DBUS_TYPE_ARRAY, "{sv}", &dict );
if( i_es < p_item->i_categories )
if( (i_es >= 0) && (i_es < p_item->i_categories) )
{
for( int j = 0 ; j < p_item->pp_categories[i_es]->i_infos ; j++ )
{
......
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