aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonathan Marshall <jmarshall@xbmc.org>2014-05-02 08:15:57 +1200
committerJonathan Marshall <jmarshall@xbmc.org>2014-05-02 08:15:57 +1200
commit9125422fe841379424d39bcd9ec878af528ac6a1 (patch)
tree724d82f15eed7c739319d4af1fc98cd204f71a95
parentf835db366d886133a47a6772fe55252278394fec (diff)
[bookmark] fix resume bookmark from a plugin:// of stack:// items, thanks to kit500
-rw-r--r--xbmc/Application.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/xbmc/Application.cpp b/xbmc/Application.cpp
index bd90f07844..203e69d53d 100644
--- a/xbmc/Application.cpp
+++ b/xbmc/Application.cpp
@@ -3810,7 +3810,10 @@ PlayBackRet CApplication::PlayStack(const CFileItem& item, bool bRestart)
{
// can only resume seek here, not dvdstate
CBookmark bookmark;
- if( dbs.GetResumeBookMark(item.GetPath(), bookmark) )
+ CStdString path = item.GetPath();
+ if (item.HasProperty("original_listitem_url") && URIUtils::IsPlugin(item.GetProperty("original_listitem_url").asString()))
+ path = item.GetProperty("original_listitem_url").asString();
+ if( dbs.GetResumeBookMark(path, bookmark) )
seconds = bookmark.timeInSeconds;
else
seconds = 0.0f;