diff options
author | da-anda <da-anda@xbmc.org> | 2014-09-06 11:54:04 +0200 |
---|---|---|
committer | da-anda <da-anda@xbmc.org> | 2014-09-06 11:54:04 +0200 |
commit | f67862843c98fd1c3782a60c9fd14e9c91051942 (patch) | |
tree | 2c104d20739d27ca92e7e006d4fff39874b95020 | |
parent | bb5cdbcfc24f10335ad26ab97d7162c09a2722f5 (diff) | |
parent | 481f28c1a33065e9baa66972e46b7ed346dc9c0c (diff) |
Merge pull request #5245 from da-anda/consistent-playback
[UX] consistent playback behavior for music and video
-rw-r--r-- | xbmc/video/windows/GUIWindowVideoBase.cpp | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/xbmc/video/windows/GUIWindowVideoBase.cpp b/xbmc/video/windows/GUIWindowVideoBase.cpp index 5e27b28ee5..1d7da1d3ba 100644 --- a/xbmc/video/windows/GUIWindowVideoBase.cpp +++ b/xbmc/video/windows/GUIWindowVideoBase.cpp @@ -207,9 +207,19 @@ bool CGUIWindowVideoBase::OnMessage(CGUIMessage& message) { return OnInfo(iItem); } - else if (iAction == ACTION_PLAYER_PLAY && !g_application.m_pPlayer->IsPlayingVideo()) + else if (iAction == ACTION_PLAYER_PLAY) { - return OnResumeItem(iItem); + // if playback is paused or playback speed != 1, return + if (g_application.m_pPlayer->IsPlayingVideo()) + { + if (g_application.m_pPlayer->IsPausedPlayback()) + return false; + if (g_application.m_pPlayer->GetPlaySpeed() != 1) + return false; + } + + // not playing video, or playback speed == 1 + return OnResumeItem(iItem); } else if (iAction == ACTION_DELETE_ITEM) { |