From ffed29e6326e306168302c68a6be32189789da0c Mon Sep 17 00:00:00 2001 From: 21pages Date: Fri, 21 Jun 2024 23:58:00 +0800 Subject: [PATCH] fix typo (#8436) Signed-off-by: 21pages --- libs/hbb_common/src/config.rs | 6 +++--- src/server/video_service.rs | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/libs/hbb_common/src/config.rs b/libs/hbb_common/src/config.rs index 5846563bb..e1649ddd7 100644 --- a/libs/hbb_common/src/config.rs +++ b/libs/hbb_common/src/config.rs @@ -2085,8 +2085,8 @@ pub mod keys { pub const OPTION_PRESET_ADDRESS_BOOK_NAME: &str = "preset-address-book-name"; pub const OPTION_PRESET_ADDRESS_BOOK_TAG: &str = "preset-address-book-tag"; pub const OPTION_ENABLE_DIRECTX_CAPTURE: &str = "enable-directx-capture"; - pub const OPTION_ENABLE_ANDRIOD_SOFTWARE_ENCODING_HALF_SCALE: &str = - "enable-andriod-software-encoding-half-scale"; + pub const OPTION_ENABLE_ANDROID_SOFTWARE_ENCODING_HALF_SCALE: &str = + "enable-android-software-encoding-half-scale"; // flutter local options pub const OPTION_FLUTTER_REMOTE_MENUBAR_STATE: &str = "remoteMenubarState"; @@ -2210,7 +2210,7 @@ pub mod keys { OPTION_PRESET_ADDRESS_BOOK_NAME, OPTION_PRESET_ADDRESS_BOOK_TAG, OPTION_ENABLE_DIRECTX_CAPTURE, - OPTION_ENABLE_ANDRIOD_SOFTWARE_ENCODING_HALF_SCALE, + OPTION_ENABLE_ANDROID_SOFTWARE_ENCODING_HALF_SCALE, ]; } diff --git a/src/server/video_service.rs b/src/server/video_service.rs index eb9ec8689..7fd5dee1f 100644 --- a/src/server/video_service.rs +++ b/src/server/video_service.rs @@ -841,7 +841,7 @@ fn get_recorder( #[cfg(target_os = "android")] fn check_change_scale(hardware: bool) -> ResultType<()> { - use hbb_common::config::keys::OPTION_ENABLE_ANDRIOD_SOFTWARE_ENCODING_HALF_SCALE as SCALE_SOFT; + use hbb_common::config::keys::OPTION_ENABLE_ANDROID_SOFTWARE_ENCODING_HALF_SCALE as SCALE_SOFT; // isStart flag is set at the end of startCapture() in Android, wait it to be set. for i in 0..6 {