mirror of
https://github.com/weyne85/rustdesk.git
synced 2025-10-29 17:00:05 +00:00
Revert "disable ffmpeg ram codec temporarily" (#6928)
This commit is contained in:
@@ -708,17 +708,10 @@ impl Decoder {
|
||||
|
||||
#[cfg(any(feature = "hwcodec", feature = "mediacodec"))]
|
||||
pub fn enable_hwcodec_option() -> bool {
|
||||
#[cfg(feature = "hwcodec")]
|
||||
{
|
||||
return false;
|
||||
}
|
||||
#[cfg(feature = "mediacodec")]
|
||||
{
|
||||
if let Some(v) = Config2::get().options.get("enable-hwcodec") {
|
||||
return v != "N";
|
||||
}
|
||||
return true; // default is true
|
||||
if let Some(v) = Config2::get().options.get("enable-hwcodec") {
|
||||
return v != "N";
|
||||
}
|
||||
return true; // default is true
|
||||
}
|
||||
#[cfg(feature = "gpucodec")]
|
||||
pub fn enable_gpucodec_option() -> bool {
|
||||
|
||||
@@ -381,7 +381,6 @@ pub fn check_available_hwcodec() {
|
||||
}
|
||||
|
||||
pub fn hwcodec_new_check_process() {
|
||||
/*
|
||||
use std::sync::Once;
|
||||
let f = || {
|
||||
// Clear to avoid checking process errors
|
||||
@@ -424,5 +423,4 @@ pub fn hwcodec_new_check_process() {
|
||||
ONCE.call_once(|| {
|
||||
std::thread::spawn(f);
|
||||
});
|
||||
*/
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user