cec: always reset the button press time in CLibCEC::AddKey()
[deb_libcec.git] / src / lib / LibCEC.cpp
index ed60f43ff2f25f623e814f86b282c781c5f0e915..a287609e0e89258d27d1171bdf0e5c594368905a 100644 (file)
@@ -254,8 +254,8 @@ void CLibCEC::AddKey(void)
     key.keycode = m_iCurrentButton;
     m_keyBuffer.Push(key);
     m_iCurrentButton = CEC_USER_CONTROL_CODE_UNKNOWN;
-    m_buttontime = 0;
   }
+  m_buttontime = 0;
 }
 
 void CLibCEC::AddCommand(const cec_command &command)