kodi: fix aml audio patch

This commit is contained in:
Jonas Karlman 2016-10-18 19:14:26 +02:00
parent dc3b0781ff
commit 163298041f

View File

@ -16,7 +16,7 @@ index 6a9066b..4d7f85d 100644
}
#if defined(HAS_LIBAMCODEC)
- if (aml_present())
+ if (!m_passthrough && aml_present())
+ if (!m_passthrough && device.find("hdmi:CARD=AMLM8AUDIO") != std::string::npos)
{
- aml_set_audio_passthrough(m_passthrough);
device = "default";