Commit 5f438ca0 authored by Clément Stenac's avatar Clément Stenac

Don't bother creating an input thread for non-file

parent b44518a8
...@@ -851,11 +851,26 @@ static void RunPreparse ( playlist_preparse_t *p_obj ) ...@@ -851,11 +851,26 @@ static void RunPreparse ( playlist_preparse_t *p_obj )
p_current = playlist_ItemGetById( p_playlist, i_current_id ); p_current = playlist_ItemGetById( p_playlist, i_current_id );
if( p_current ) if( p_current )
{ {
vlc_bool_t b_preparsed = VLC_FALSE;
if( strncmp( p_current->input.psz_uri, "http:", 5 ) &&
strncmp( p_current->input.psz_uri, "rtsp:", 5 ) &&
strncmp( p_current->input.psz_uri, "udp:", 4 ) &&
strncmp( p_current->input.psz_uri, "mms:", 4 ) &&
strncmp( p_current->input.psz_uri, "cdda:", 4 ) &&
strncmp( p_current->input.psz_uri, "dvd:", 4 ) &&
strncmp( p_current->input.psz_uri, "v4l:", 4 ) &&
strncmp( p_current->input.psz_uri, "dshow:", 6 ) )
{
b_preparsed = VLC_TRUE;
input_Preparse( p_playlist, &p_current->input ); input_Preparse( p_playlist, &p_current->input );
}
vlc_mutex_unlock( &p_playlist->object_lock ); vlc_mutex_unlock( &p_playlist->object_lock );
if( b_preparsed )
{
var_SetInteger( p_playlist, "item-change", var_SetInteger( p_playlist, "item-change",
p_current->input.i_id ); p_current->input.i_id );
} }
}
else else
vlc_mutex_unlock( &p_playlist->object_lock ); vlc_mutex_unlock( &p_playlist->object_lock );
vlc_mutex_lock( &p_obj->object_lock ); vlc_mutex_lock( &p_obj->object_lock );
......
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