Skip to content

Commit

Permalink
[resume] if plugins set the resumetime in setResolvedURL(), then assu…
Browse files Browse the repository at this point in the history
…me they want the item to resume.
  • Loading branch information
hippojay authored and Jonathan Marshall committed Aug 3, 2012
1 parent 10509a3 commit d82d1a7
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions xbmc/filesystem/PluginDirectory.cpp
Expand Up @@ -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"
Expand Down Expand Up @@ -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;

Expand Down

0 comments on commit d82d1a7

Please sign in to comment.