xbmc/xbmc — pull request #5786 by ksooo (2014-11-23 08:24:17+00:00)
Title: [cec] Fixed PeripheralCecAdapter application exit code handling.

In CPeripheralCecAdapter::Announce, getting the app exit code from the CVariant "data" paramter did not work as the variant is a plain integer and does not contain a field "shutdown" (https://github.com/xbmc/xbmc/blob/master/xbmc/Application.cpp#L3484). This led to m_iExitCode always being EXITCODE_QUIT.

Consequence was, that on reboot or restart of kodi, TV (and AVR) got switched off, which is not intended (https://github.com/xbmc/xbmc/blob/master/xbmc/peripherals/devices/PeripheralCecAdapter.cpp#L397).

I suggest to include this fix in Helix.