Skip to content

Commit

Permalink
#3: stop Kodi playback when switching source back to TV
Browse files Browse the repository at this point in the history
or TV standby
  • Loading branch information
ballle98 committed Jan 23, 2024
1 parent 6765544 commit 59b84e3
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions cec-lirc.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -190,6 +190,10 @@ void turnAudioOff() {
// :TODO: CCECAudioSystem::SetSystemAudioModeStatus
CECAdapter->StandbyDevices((cec_logical_address) CEC_DEVICE_TYPE_AUDIO_SYSTEM);
CECAdapter->AudioEnable(false);

(logMask & CEC_LOG_DEBUG)
&& cout << "Stop Kodi playback" << endl;
xbmc.SendButton("stop", "R1", BTN_NO_REPEAT);
}

void CECCommand(void *cbParam, const cec_command *command) {
Expand Down

0 comments on commit 59b84e3

Please sign in to comment.