Browse files

fixed: do not try to extract stream details for stub files (closes #1…

…3194)
  • Loading branch information...
1 parent fc053f2 commit d92792ff4f726c00f44ef6ec9fc807e3d02bd27d @mkortstiege mkortstiege committed Jul 20, 2012
Showing with 7 additions and 0 deletions.
  1. +6 −0 xbmc/FileItem.cpp
  2. +1 −0 xbmc/ThumbLoader.cpp
View
6 xbmc/FileItem.cpp
@@ -560,6 +560,12 @@ bool CFileItem::IsVideo() const
bool CFileItem::IsDiscStub() const
{
+ if (IsVideoDb() && HasVideoInfoTag())
+ {
+ CFileItem dbItem(m_bIsFolder ? GetVideoInfoTag()->m_strPath : GetVideoInfoTag()->m_strFileNameAndPath, m_bIsFolder);
+ return dbItem.IsDiscStub();
+ }
+
CStdString strExtension;
URIUtils::GetExtension(m_strPath, strExtension);
View
1 xbmc/ThumbLoader.cpp
@@ -109,6 +109,7 @@ bool CThumbExtractor::DoWork()
|| m_item.IsDVDImage()
|| m_item.IsDVDFile(false, true)
|| m_item.IsInternetStream()
+ || m_item.IsDiscStub()
|| m_item.IsPlayList())
return false;

0 comments on commit d92792f

Please sign in to comment.