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

Mark non-file input items as preparsed even if they're not

Without this, libvlc_media_parse() will deadlock on non-file items.
parent 4fe8a647
...@@ -126,7 +126,10 @@ static void Preparse( playlist_t *p_playlist, input_item_t *p_item ) ...@@ -126,7 +126,10 @@ static void Preparse( playlist_t *p_playlist, input_item_t *p_item )
vlc_mutex_unlock( &p_item->lock ); vlc_mutex_unlock( &p_item->lock );
if( i_type != ITEM_TYPE_FILE ) if( i_type != ITEM_TYPE_FILE )
{
input_item_SetPreparsed( p_item, true );
return; return;
}
stats_TimerStart( p_playlist, "Preparse run", STATS_TIMER_PREPARSE ); stats_TimerStart( p_playlist, "Preparse run", STATS_TIMER_PREPARSE );
......
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