Skip to content
Permalink
Browse files

[cec] Don't discard buttons when repeat mode is enabled

  • Loading branch information...
popcornmix committed Nov 3, 2014
1 parent 43882b0 commit 2397aad01400d6dda42dcb78c8806d4ad0039cf1
Showing with 4 additions and 1 deletion.
  1. +4 −1 xbmc/peripherals/devices/PeripheralCecAdapter.cpp
@@ -804,7 +804,10 @@ void CPeripheralCecAdapter::PushCecKeypress(const CecButtonPress &key)
CLog::Log(LOGDEBUG, "%s - received key %2x duration %d", __FUNCTION__, key.iButton, key.iDuration);

CSingleLock lock(m_critSection);
if (key.iDuration > 0)
// avoid the queue getting too long
if (m_configuration.iButtonRepeatRateMs && m_buttonQueue.size() > 5)
return;
if (m_configuration.iButtonRepeatRateMs == 0 && key.iDuration > 0)
{
if (m_currentButton.iButton == key.iButton && m_currentButton.iDuration == 0)
{

0 comments on commit 2397aad

Please sign in to comment.
You can’t perform that action at this time.