Skip to content
Permalink
Browse files

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

This reverts commit a4737a7.
  • Loading branch information...
popcornmix committed Oct 26, 2016
1 parent e35ec01 commit fa461dc20422af00cdf46f80514fc07eae584476
Showing with 1 addition and 4 deletions.
  1. +1 −4 xbmc/peripherals/devices/PeripheralCecAdapter.cpp
@@ -815,10 +815,7 @@ void CPeripheralCecAdapter::PushCecKeypress(const CecButtonPress &key)
CLog::Log(LOGDEBUG, "%s - received key %2x duration %d", __FUNCTION__, key.iButton, key.iDuration);

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

0 comments on commit fa461dc

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