Permalink
Browse files

use IsSet() instead of IsPartWay() when scanning in videos (to allow …

…overriding of existing resume points with none) and when receiving the resume item offset (to allow plugins to override existing resume points with none)
  • Loading branch information...
1 parent ba91333 commit 43739d2ae41a51fdbc665d846c10dbe2e51a382a Jonathan Marshall committed Aug 3, 2012
Showing with 2 additions and 2 deletions.
  1. +1 −1 xbmc/video/VideoInfoScanner.cpp
  2. +1 −1 xbmc/video/windows/GUIWindowVideoBase.cpp
View
2 xbmc/video/VideoInfoScanner.cpp
@@ -1106,7 +1106,7 @@ namespace VIDEO
m_database.SetPlayCount(*pItem, movieDetails.m_playCount, movieDetails.m_lastPlayed);
if ((g_advancedSettings.m_bVideoLibraryImportResumePoint || libraryImport) &&
- movieDetails.m_resumePoint.IsPartWay())
+ movieDetails.m_resumePoint.IsSet())
m_database.AddBookMarkToFile(pItem->GetPath(), movieDetails.m_resumePoint, CBookmark::RESUME);
m_database.Close();
View
2 xbmc/video/windows/GUIWindowVideoBase.cpp
@@ -827,7 +827,7 @@ void CGUIWindowVideoBase::GetResumeItemOffset(const CFileItem *item, int& starto
if (!item->IsNFO() && !item->IsPlayList())
{
- if (item->HasVideoInfoTag() && item->GetVideoInfoTag()->m_resumePoint.IsPartWay())
+ if (item->HasVideoInfoTag() && item->GetVideoInfoTag()->m_resumePoint.IsSet())
{
startoffset = (int)(item->GetVideoInfoTag()->m_resumePoint.timeInSeconds*75);
partNumber = item->GetVideoInfoTag()->m_resumePoint.partNumber;

0 comments on commit 43739d2

Please sign in to comment.