Skip to content
Browse files

Fix video in slideshow not show and hang in black problem.

  • Loading branch information...
1 parent 6deaf5f commit 67ec36754926d729a5b83d289ea03b51469f1f78 @ulion committed Mar 4, 2013
Showing with 6 additions and 2 deletions.
  1. +6 −2 xbmc/pictures/GUIWindowSlideShow.cpp
View
8 xbmc/pictures/GUIWindowSlideShow.cpp
@@ -289,8 +289,12 @@ void CGUIWindowSlideShow::Add(const CFileItem *picture)
CFileItemPtr item(new CFileItem(*picture));
if (!item->HasVideoInfoTag() && !item->HasPictureInfoTag())
{
- // item without tag; assume it is a picture and force tag generation
- item->GetPictureInfoTag();
+ // item without tag; get mimetype then we can tell whether it's video item
+ item->GetMimeType();
+
+ if (!item->IsVideo())
+ // then it is a picture and force tag generation
+ item->GetPictureInfoTag();
}
AnnouncePlaylistAdd(item, m_slides->Size());

0 comments on commit 67ec367

Please sign in to comment.
Something went wrong with that request. Please try again.