Permalink
Browse files

Fake skipping to the beginning of tracks if seeking is unavailable.

  • Loading branch information...
1 parent b88e2b1 commit e7002ea012c65adca784442ae2bdfdead146948f @jam jam committed Nov 14, 2009
Showing with 11 additions and 3 deletions.
  1. +11 −3 xbmc/Application.cpp
View
@@ -3191,10 +3191,18 @@ bool CApplication::OnAction(const CAction &action)
{
// first check whether we're within 3 seconds of the start of the track
// if not, we just revert to the start of the track
- if (m_pPlayer && m_pPlayer->CanSeek() && GetTime() > 3)
+ if (GetTime() > 3)
{
- SeekTime(0);
- SetPlaySpeed(1);
+ if (m_pPlayer && m_pPlayer->CanSeek())
+ {
+ SeekTime(0);
+ SetPlaySpeed(1);
+ }
+ else
+ {
+ g_playlistPlayer.Play(g_playlistPlayer.GetCurrentSong());
+ }
+
}
else
{

0 comments on commit e7002ea

Please sign in to comment.