diff --git a/src/libcec.cpp b/src/libcec.cpp index 7de95cb..7e6ed69 100644 --- a/src/libcec.cpp +++ b/src/libcec.cpp @@ -153,7 +153,8 @@ Cec::Cec(const char * name, CecCallback * callback) config.bSendInactiveSource = 0; config.bPowerOffOnStandby = 0; config.bShutdownOnStandby = 0; - config.iDoubleTapTimeoutMs = 0; + // since 2.2.0 + config.iDoubleTapTimeout50Ms = 0; callbacks.CBCecLogMessage = &::cecLogMessage; callbacks.CBCecKeyPress = &::cecKeyPress; diff --git a/src/main.cpp b/src/main.cpp index a805141..13de756 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -411,7 +411,7 @@ int Main::onCecKeyPress(const cec_keypress &key) { } int Main::onCecKeyPress(const cec_user_control_code & keycode) { - cec_keypress key = { .keycode=keycode }; + cec_keypress key = { key.keycode=keycode }; /* PUSH KEY */ key.duration = 0;