diff options
author | Thomas Reufer <thomas@reufer.ch> | 2016-03-08 09:14:52 +0100 |
---|---|---|
committer | Thomas Reufer <thomas@reufer.ch> | 2016-03-08 09:14:52 +0100 |
commit | 5e28e4ccd7515de3f102538e5ea486d5d81b6fab (patch) | |
tree | 6e66a711d013f0a04ac2b49d212f57d28b375dc8 | |
parent | dd5379d79ff0b7fc1151a4e2661eea755323c626 (diff) | |
download | vdr-plugin-rpihddevice-5e28e4ccd7515de3f102538e5ea486d5d81b6fab.tar.gz vdr-plugin-rpihddevice-5e28e4ccd7515de3f102538e5ea486d5d81b6fab.tar.bz2 |
fixed HDMI channel mapping and stream type (reported by RĂ¼diger Follmann)
-rw-r--r-- | HISTORY | 1 | ||||
-rw-r--r-- | audio.c | 8 | ||||
-rw-r--r-- | setup.c | 4 |
3 files changed, 7 insertions, 6 deletions
@@ -5,6 +5,7 @@ VDR Plugin 'rpihddevice' Revision History - set device name - add option for dual display usage, see README - fixed: + - fixed HDMI channel mapping and stream type (reported by RĂ¼diger Follmann) - fixed drawing of cached images with high level OSD - only cache images in GPU when high level OSD is active - added proper GPL header to every source file (suggested by Tobias Grimm) @@ -1085,6 +1085,10 @@ private: if (m_codec != cAudioCodec::eInvalid) { + if (m_port == cRpiAudioPort::eHDMI) + cRpiSetup::SetHDMIChannelMapping(m_codec != cAudioCodec::ePCM, + m_outChannels); + m_omx->SetupAudioRender(m_codec, m_outChannels, m_port, m_samplingRate, m_frameSize); @@ -1093,10 +1097,6 @@ private: cAudioCodec::Str(m_codec), m_samplingRate / 1000, (m_samplingRate % 1000) / 100, m_codec != cAudioCodec::ePCM ? " (pass-through)" : ""); - - if (m_port == cRpiAudioPort::eHDMI) - cRpiSetup::SetHDMIChannelMapping(m_codec != cAudioCodec::ePCM, - m_outChannels); } m_running = m_codec != cAudioCodec::eInvalid; m_configured = true; @@ -255,7 +255,7 @@ void cRpiSetup::SetHDMIChannelMapping(bool passthrough, int channels) char command[80], response[80]; sprintf(command, "hdmi_stream_channels %d", passthrough ? 1 : 0); - vc_gencmd(response, sizeof response, command); + vc_gencmd(response, sizeof(response), command); uint32_t channel_map = 0; @@ -290,7 +290,7 @@ void cRpiSetup::SetHDMIChannelMapping(bool passthrough, int channels) } sprintf(command, "hdmi_channel_map 0x%08x", channel_map); - vc_gencmd(response, sizeof response, command); + vc_gencmd(response, sizeof(response), command); } cMenuSetupPage* cRpiSetup::GetSetupPage(void) |