Commit d0b16c40 authored by Clément Stenac's avatar Clément Stenac

Fix win32 crash when playlist is empty

parent 1a206d33
......@@ -776,6 +776,12 @@ void Playlist::Rebuild()
item = root;
}
if( p_playlist->i_size )
{
SetCurrentItem( item );
}
i_count = CountItems( treectrl->GetRootItem() );
if( i_count != p_playlist->i_size )
{
......@@ -791,8 +797,6 @@ void Playlist::Rebuild()
p_playlist->i_size ), 0 );
}
SetCurrentItem( item );
vlc_mutex_unlock( &p_playlist->object_lock );
vlc_object_release( p_playlist );
......
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