Skip to content

Commit

Permalink
Revert "[cec] Don't discard buttons when repeat mode is enabled"
Browse files Browse the repository at this point in the history
This reverts commit f2ed0d87f51b508c8470f28fda4955d661b0e8ca.
  • Loading branch information
popcornmix committed May 5, 2015
1 parent 90e2a64 commit 0fc1c68
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions xbmc/peripherals/devices/PeripheralCecAdapter.cpp
Expand Up @@ -803,10 +803,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)
{
Expand Down

0 comments on commit 0fc1c68

Please sign in to comment.