cec: always reset the button press time in CLibCEC::AddKey()
authorLars Op den Kamp <lars@opdenkamp.eu>
Thu, 3 Nov 2011 00:05:08 +0000 (01:05 +0100)
committerLars Op den Kamp <lars@opdenkamp.eu>
Thu, 3 Nov 2011 00:05:08 +0000 (01:05 +0100)
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)