xbmc/xbmc — comment on commit 4f3fc2d8b473f9b3ba683cd93f08ca64b88cc66b
File: xbmc/cores/AudioRenderers/CoreAudioRenderer.cpp line 477
By davilla:

look closer, the real call from dvdplayer sets up m_init_state.channelMap, a reinit then passed this back in, we save a pointer to current internal channelMap, update the internal channelMap, then delete the saved one. In the case of a reinit, it's the same channelMap contents but because it is deleted after updating, all is fine.