Merge pull request #4616 from kit500/master
authorjmarshallnz <jcmarsha@gmail.com>
Mon, 28 Apr 2014 06:01:30 +0000 (18:01 +1200)
committerJonathan Marshall <jmarshall@xbmc.org>
Thu, 1 May 2014 20:07:16 +0000 (08:07 +1200)
fix resume behavior for plugins with stack

xbmc/Application.cpp

index b9383f0..bd90f07 100644 (file)
@@ -3723,7 +3723,10 @@ PlayBackRet CApplication::PlayStack(const CFileItem& item, bool bRestart)
       if (dbs.Open())
       {
         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) )
         {
           startoffset = (int)(bookmark.timeInSeconds*75);
           selectedFile = bookmark.partNumber;