Permalink
Browse files

[resume] if plugins set the resumetime in setResolvedURL(), then assu…

…me they want the item to resume.
  • Loading branch information...
1 parent 10509a3 commit d82d1a7ff8f6272d7a6f5073cf9b3af3d2faac28 @hippojay hippojay committed with Jonathan Marshall Jul 9, 2012
Showing with 3 additions and 0 deletions.
  1. +3 −0 xbmc/filesystem/PluginDirectory.cpp
@@ -35,6 +35,7 @@
#include "dialogs/GUIDialogProgress.h"
#include "settings/GUISettings.h"
#include "FileItem.h"
+#include "video/VideoInfoTag.h"
#include "guilib/LocalizeStrings.h"
#include "utils/log.h"
#include "utils/TimeUtils.h"
@@ -148,6 +149,8 @@ bool CPluginDirectory::GetPluginResult(const CStdString& strPath, CFileItem &res
resultItem.SetPath(newDir->m_fileResult->GetPath());
resultItem.SetMimeType(newDir->m_fileResult->GetMimeType(false));
resultItem.UpdateInfo(*newDir->m_fileResult);
+ if (newDir->m_fileResult->HasVideoInfoTag() && newDir->m_fileResult->GetVideoInfoTag()->m_resumePoint.IsSet())
+ resultItem.m_lStartOffset = STARTOFFSET_RESUME; // resume point set in the resume item, so force resume
}
delete newDir;

0 comments on commit d82d1a7

Please sign in to comment.