aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorda-anda <da-anda@xbmc.org>2014-08-19 02:36:08 +0200
committerda-anda <da-anda@xbmc.org>2014-08-19 12:46:35 +0200
commit481f28c1a33065e9baa66972e46b7ed346dc9c0c (patch)
treeabebbc24c5dc76b26eab3d5a6b2a56cea72e589c
parente6c2a13ff7e665235bc734d4a13d52ca19e5f45a (diff)
[UX] consistent playback behavior for music and video
-rw-r--r--xbmc/video/windows/GUIWindowVideoBase.cpp14
1 files changed, 12 insertions, 2 deletions
diff --git a/xbmc/video/windows/GUIWindowVideoBase.cpp b/xbmc/video/windows/GUIWindowVideoBase.cpp
index 0065e06898..0b7154af0d 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)
{