Commit d68541a9 authored by Thomas Guillem's avatar Thomas Guillem

preparser: don't send vlc_InputItemPreparsedChanged in case of failure

The vlc_InputItemPreparseEnded event should be enough.

There is a compat code inside libvlc in order to don't break old API that are
waiting for a libvlc_MediaParsedChanged, even in case of error.
parent be5d7c28
......@@ -265,6 +265,11 @@ static void input_item_preparse_ended( const vlc_event_t * p_event,
libvlc_media_list_internal_end_reached( p_subitems );
libvlc_media_list_unlock( p_subitems );
}
/* XXX: libVLC 2.2.0 compat: even if case of preparse failure,
* libvlc_MediaParsedChanged was sent with a true status. Therefore, send
* this event if it was not previously sent */
send_preparsed_event(p_md);
}
/**************************************************************************
......
......@@ -201,9 +201,9 @@ static void Preparse( playlist_preparser_t *preparser, input_item_t *p_item,
input_Close( input );
var_SetAddress( preparser->object, "item-change", p_item );
input_item_SetPreparsed( p_item, true );
}
input_item_SetPreparsed( p_item, true );
input_item_SignalPreparseEnded( p_item );
}
......
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