if av1 is not slow in test, av1 takes precedence over vp9 (#9938)

Signed-off-by: 21pages <sunboeasy@gmail.com>
This commit is contained in:
21pages
2024-11-16 22:31:28 +08:00
committed by GitHub
parent 5d2bb9c995
commit 304e0e465d
4 changed files with 93 additions and 5 deletions

View File

@@ -2332,6 +2332,7 @@ pub mod server_side {
}
}
std::thread::spawn(move || start_server(true));
scrap::codec::test_av1();
}
#[no_mangle]

View File

@@ -500,8 +500,8 @@ pub async fn start_server(is_server: bool, no_server: bool) {
#[cfg(target_os = "windows")]
crate::platform::try_kill_broker();
#[cfg(feature = "hwcodec")]
#[cfg(not(any(target_os = "android", target_os = "ios")))]
scrap::hwcodec::start_check_process();
scrap::codec::test_av1();
crate::RendezvousMediator::start_all().await;
} else {
match crate::ipc::connect(1000, "").await {