Permalink
Browse files

Slideshow reduce race condition when background loading picture.

  • Loading branch information...
1 parent 6940ff8 commit 3de411d5c292fe7bf4fa5639bca3f5054c284439 @ulion committed Apr 11, 2013
Showing with 2 additions and 0 deletions.
  1. +2 −0 xbmc/pictures/GUIWindowSlideShow.cpp
@@ -499,6 +499,8 @@ void CGUIWindowSlideShow::Process(unsigned int currentTime, CDirtyRegionList &re
return;
}
+ CSingleLock lock(m_slideSection);
+
if (!m_Image[m_iCurrentPic].IsLoaded() && !m_pBackgroundLoader->IsLoading())
{ // load first image
CFileItemPtr item = m_slides->Get(m_iCurrentSlide);

0 comments on commit 3de411d

Please sign in to comment.