feat: Android Codec Preference
This commit is contained in:
parent
c6e1e84c72
commit
6f92edca5c
3 changed files with 76 additions and 41 deletions
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue