Skip to content

Commit

Permalink
PeripheralCecAdapter: Only stop playback if currently playing
Browse files Browse the repository at this point in the history
Otherwise powering off TV sends stop message so screensaver which then powers TV back on again
  • Loading branch information
popcornmix committed Jun 11, 2019
1 parent e3ca1b2 commit d32c807
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion xbmc/peripherals/devices/PeripheralCecAdapter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -597,7 +597,8 @@ void CPeripheralCecAdapter::OnTvStandby(void)
KODI::MESSAGING::CApplicationMessenger::GetInstance().PostMsg(TMSG_MEDIA_PAUSE);
break;
case LOCALISED_ID_STOP:
KODI::MESSAGING::CApplicationMessenger::GetInstance().PostMsg(TMSG_MEDIA_STOP);
if (g_application.GetAppPlayer().IsPlaying())
KODI::MESSAGING::CApplicationMessenger::GetInstance().PostMsg(TMSG_MEDIA_STOP);
break;
case LOCALISED_ID_IGNORE:
break;
Expand Down

0 comments on commit d32c807

Please sign in to comment.