Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
If available use videoInfoTags in IsSamePath
If VideoInfoTags are available, then comparing the DBId and the Type is good enough for testing the samePath.
- Loading branch information
Showing
1 changed file
with
5 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -1430,6 +1430,11 @@ bool CFileItem::IsSamePath(const CFileItem *item) const | |
return (item->GetProperty("item_start") == GetProperty("item_start")); | ||
return true; | ||
} | ||
if (HasVideoInfoTag() && item->HasVideoInfoTag()) | ||
{ | ||
return ((m_videoInfoTag->m_iDbId == item->m_videoInfoTag->m_iDbId) && | ||
(m_videoInfoTag->m_type == item->m_videoInfoTag->m_type)); | ||
} | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
cg110
Author
Owner
|
||
if (IsMusicDb() && HasMusicInfoTag()) | ||
{ | ||
CFileItem dbItem(m_musicInfoTag->GetURL(), false); | ||
|
1 comment
on commit 763a702
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As a timing data point, the above change, and the -1 commit, remove the time it takes to compare 346 films with FileItemList::UpdateItem from 10ms, to <1ms. That's on an i7-920.
I think you also need check that m_iDbId != -1. So something like: