aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFred Hoogduin <tv@hoogduin.net>2014-05-16 11:01:14 +0200
committerFred Hoogduin <tv@hoogduin.net>2014-05-17 11:01:21 +0200
commitdff4d1e5421f912de1b07f069f7e4a68e9fd183e (patch)
tree71c5ce01e8f1a21b6bfe2465f58ea8a085b91a14
parent06b218e801e3b020a588c2b839bed0b1b3c0a9a3 (diff)
Re-factored GetResumeString to not insert a bookmark in the video db, it is never used
-rw-r--r--xbmc/pvr/windows/GUIWindowPVRRecordings.cpp17
1 files changed, 2 insertions, 15 deletions
diff --git a/xbmc/pvr/windows/GUIWindowPVRRecordings.cpp b/xbmc/pvr/windows/GUIWindowPVRRecordings.cpp
index feb39008de..573b46493f 100644
--- a/xbmc/pvr/windows/GUIWindowPVRRecordings.cpp
+++ b/xbmc/pvr/windows/GUIWindowPVRRecordings.cpp
@@ -70,21 +70,8 @@ CStdString CGUIWindowPVRRecordings::GetResumeString(const CFileItem& item)
// First try to find the resume position on the back-end, if that fails use video database
int positionInSeconds = item.GetPVRRecordingInfoTag()->GetLastPlayedPosition();
- // If the back-end does report a saved position then make sure there is a corresponding resume bookmark
- if (positionInSeconds > 0)
- {
- CBookmark bookmark;
- bookmark.timeInSeconds = positionInSeconds;
- bookmark.totalTimeInSeconds = (double)item.GetPVRRecordingInfoTag()->GetDuration();
- CVideoDatabase db;
- if (db.Open())
- {
- CStdString itemPath(item.GetPVRRecordingInfoTag()->m_strFileNameAndPath);
- db.AddBookMarkToFile(itemPath, bookmark, CBookmark::RESUME);
- db.Close();
- }
- }
- else if (positionInSeconds < 0)
+ // If the back-end does report a saved position it will be picked up by FileItem
+ if (positionInSeconds < 0)
{
CVideoDatabase db;
if (db.Open())