feat: Android Codec Preference

This commit is contained in:
csf
2022-09-16 20:31:01 +08:00
parent c6e1e84c72
commit 6f92edca5c
3 changed files with 76 additions and 41 deletions

View File

@@ -744,9 +744,9 @@ pub fn get_api_server() -> String {
#[inline]
pub fn has_hwcodec() -> bool {
#[cfg(not(feature = "hwcodec"))]
#[cfg(not(any(feature = "hwcodec", feature = "mediacodec")))]
return false;
#[cfg(feature = "hwcodec")]
#[cfg(any(feature = "hwcodec", feature = "mediacodec"))]
return true;
}