From 87b242f779ed612c96c291061c6602914df0cc14 Mon Sep 17 00:00:00 2001 From: Jonathan Marshall Date: Sun, 11 Nov 2012 15:42:41 +1300 Subject: reset resume point after playing items via the playlist player, so that when they repeat the start at the beginning. fixes #12811 --- xbmc/PlayListPlayer.cpp | 4 ++++ 1 file changed, 4 insertions(+) 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() -- cgit v1.2.3