Permalink
Browse files

sys: only reset forced player on playback stopped

This will allow a forced player to continue advancing in a playlist.
  • Loading branch information...
1 parent 817a9c8 commit 335d8a151d8dc758bb80ee1feb1c8c1de52cc384 @elupus committed Oct 22, 2012
Showing with 3 additions and 2 deletions.
  1. +3 −2 xbmc/Application.cpp
@@ -4043,8 +4043,6 @@ bool CApplication::PlayFile(const CFileItem& item, bool bRestart)
// reset m_bStartVideoWindowed as it's a temp setting
g_settings.m_bStartVideoWindowed = false;
- // reset any forced player
- m_eForcedNextPlayer = EPC_NONE;
#ifdef HAS_KARAOKE
//We have to stop parsing a cdg before mplayer is deallocated
@@ -4936,6 +4934,9 @@ bool CApplication::OnMessage(CGUIMessage& message)
if (CLastFmManager::GetInstance()->IsRadioEnabled())
CLastFmManager::GetInstance()->StopRadio();
+ // reset any forced player
+ m_eForcedNextPlayer = EPC_NONE;
+
delete m_pPlayer;
m_pPlayer = 0;

0 comments on commit 335d8a1

Please sign in to comment.