Skip to content

Commit

Permalink
Merge pull request #13272 from ksooo/pvr-action-player-play
Browse files Browse the repository at this point in the history
[PVR] Remove unused action ACTION_PLAY, use ACTION_PLAYER_PLAY.
  • Loading branch information
ksooo committed Dec 30, 2017
2 parents 012eaf4 + 1c66e56 commit fe1fba7
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 7 deletions.
1 change: 0 additions & 1 deletion xbmc/input/ActionIDs.h
Expand Up @@ -102,7 +102,6 @@
#define REMOTE_8 66
#define REMOTE_9 67

#define ACTION_PLAY 68 //!< Unused at the moment
#define ACTION_PLAYER_PROCESS_INFO 69 //!< show player process info (video decoder, pixel format, pvr signal strength and the like
#define ACTION_PLAYER_PROGRAM_SELECT 70
#define ACTION_SMALL_STEP_BACK 76 //!< jumps a few seconds back during playback of movie. Can b used in videoFullScreen.xml window id=2005
Expand Down
2 changes: 1 addition & 1 deletion xbmc/pvr/windows/GUIWindowPVRChannels.cpp
Expand Up @@ -148,7 +148,7 @@ bool CGUIWindowPVRChannelsBase::OnMessage(CGUIMessage& message)
{
case ACTION_SELECT_ITEM:
case ACTION_MOUSE_LEFT_CLICK:
case ACTION_PLAY:
case ACTION_PLAYER_PLAY:
CServiceBroker::GetPVRManager().GUIActions()->SwitchToChannel(m_vecItems->Get(iItem), true);
break;
case ACTION_SHOW_INFO:
Expand Down
6 changes: 3 additions & 3 deletions xbmc/pvr/windows/GUIWindowPVRGuide.cpp
Expand Up @@ -350,8 +350,8 @@ bool CGUIWindowPVRGuideBase::OnMessage(CGUIMessage& message)
CServiceBroker::GetPVRManager().GUIActions()->ShowEPGInfo(pItem);
bReturn = true;
break;
case ACTION_PLAY:
CServiceBroker::GetPVRManager().GUIActions()->PlayRecording(pItem, true);
case ACTION_PLAYER_PLAY:
CServiceBroker::GetPVRManager().GUIActions()->SwitchToChannel(pItem, true);
bReturn = true;
break;
case ACTION_RECORD:
Expand All @@ -376,7 +376,7 @@ bool CGUIWindowPVRGuideBase::OnMessage(CGUIMessage& message)
{
case ACTION_SELECT_ITEM:
case ACTION_MOUSE_LEFT_CLICK:
case ACTION_PLAY:
case ACTION_PLAYER_PLAY:
{
// EPG "gap" selected => switch to associated channel.
CGUIEPGGridContainer *epgGridContainer = GetGridControl();
Expand Down
4 changes: 2 additions & 2 deletions xbmc/pvr/windows/GUIWindowPVRRecordings.cpp
Expand Up @@ -206,7 +206,7 @@ bool CGUIWindowPVRRecordingsBase::OnMessage(CGUIMessage &message)
{
case ACTION_SELECT_ITEM:
case ACTION_MOUSE_LEFT_CLICK:
case ACTION_PLAY:
case ACTION_PLAYER_PLAY:
{
const CPVRRecordingsPath path(m_vecItems->GetPath());
if (path.IsValid() && path.IsRecordingsRoot() && item->IsParentFolder())
Expand All @@ -224,7 +224,7 @@ bool CGUIWindowPVRRecordingsBase::OnMessage(CGUIMessage &message)
break;
}

if (message.GetParam1() == ACTION_PLAY)
if (message.GetParam1() == ACTION_PLAYER_PLAY)
{
CServiceBroker::GetPVRManager().GUIActions()->PlayRecording(item, true /* check resume */);
bReturn = true;
Expand Down

0 comments on commit fe1fba7

Please sign in to comment.