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 Sep 28, 2020
1 parent f273338 commit d8fb71c
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 @@ -626,7 +626,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 d8fb71c

Please sign in to comment.