diff options
author | Jonathan Marshall <jmarshall@never.you.mind> | 2012-11-11 15:42:41 +1300 |
---|---|---|
committer | Jonathan Marshall <jmarshall@never.you.mind> | 2012-11-11 15:42:45 +1300 |
commit | 87b242f779ed612c96c291061c6602914df0cc14 (patch) | |
tree | 11662589f60c82abf38b4b727f28e901cc7be141 | |
parent | 0a0085c9f724ac731a2a8a91b947e3b9aa1b2bdd (diff) |
reset resume point after playing items via the playlist player, so that when they repeat the start at the beginning. fixes #12811
-rw-r--r-- | xbmc/PlayListPlayer.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/xbmc/PlayListPlayer.cpp b/xbmc/PlayListPlayer.cpp index 4eda276ae3..3d9e867e08 100644 --- a/xbmc/PlayListPlayer.cpp +++ b/xbmc/PlayListPlayer.cpp @@ -299,6 +299,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() |