Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Merge pull request #1765 from jmarshallnz/fix_playlist_resume

fix: reset resume point after playing items via the playlist player
  • Loading branch information...
commit c313df313a843a554669d2a23a1f259eba067d3a 2 parents 1dda12d + 87b242f
Arne Morten Kvarving authored
Showing with 4 additions and 0 deletions.
  1. +4 −0 xbmc/PlayListPlayer.cpp
View
4 xbmc/PlayListPlayer.cpp
@@ -302,6 +302,10 @@ bool CPlayListPlayer::Play(int iSong, bool bAutoPlay /* = false */, bool bPlayPr
}
}
+ // reset the start offset of this item
+ if (item->m_lStartOffset == STARTOFFSET_RESUME)
+ item->m_lStartOffset = 0;
+
// TODO - move the above failure logic and the below success logic
// to callbacks instead so we don't rely on the return value
// of PlayFile()
Please sign in to comment.
Something went wrong with that request. Please try again.