cec: cleanups, documentation and some fixes for the last commits
[deb_libcec.git] / src / lib / implementations / ANCommandHandler.cpp
index 2a4dc0d064dece6f48aecbe5986e0bbe143ef383..ed4218ea96e36a9553ccf45a7beb97f3118ae6ee 100644 (file)
@@ -61,7 +61,7 @@ bool CANCommandHandler::HandleVendorRemoteButtonDown(const cec_command &command)
     switch (command.parameters[0])
     {
     case CEC_USER_CONTROL_CODE_AN_RETURN:
-      key.keycode = client && client->GetConfiguration()->clientVersion >= CEC_CLIENT_VERSION_1_5_0 ?
+      key.keycode = client && client->GetClientVersion() >= CEC_CLIENT_VERSION_1_5_0 ?
         CEC_USER_CONTROL_CODE_AN_RETURN :
         CEC_USER_CONTROL_CODE_EXIT;
       break;