File tree Expand file tree Collapse file tree 1 file changed +15
-4
lines changed Expand file tree Collapse file tree 1 file changed +15
-4
lines changed Original file line number Diff line number Diff line change @@ -5001,11 +5001,22 @@ bool CApplication::OnMessage(CGUIMessage& message)
5001
5001
}
5002
5002
#endif
5003
5003
5004
- // ok - send the file to the player if it wants it
5005
- if (m_pPlayer && m_pPlayer->QueueNextFile (file))
5006
- { // player wants the next file
5007
- m_nextPlaylistItem = iNext;
5004
+ // ok - send the file to the player, if it accepts it
5005
+ if (m_pPlayer)
5006
+ {
5007
+ if (m_pPlayer->QueueNextFile (file))
5008
+ {
5009
+ // player accepted the next file
5010
+ m_nextPlaylistItem = iNext;
5011
+ }
5012
+ else
5013
+ {
5014
+ /* Player didn't accept next file: *ALWAYS* advance playlist in this case so the player can
5015
+ queue the next (if it wants to) and it doesn't keep looping on this song */
5016
+ g_playlistPlayer.SetCurrentSong (iNext);
5017
+ }
5008
5018
}
5019
+
5009
5020
return true ;
5010
5021
}
5011
5022
break ;
You can’t perform that action at this time.
0 commit comments