Skip to content

Open-source download manager & offline media toolbox for YouTube, music, social media, learning platforms & 1,800+ sites. Built with Tauri 2.0, Rust & Svelte.

feat: refactor query_codecs to use crate::core::process::command

Tonhob60cf6bbc5fa
diff --git a/src-tauri/src/core/hwaccel.rs b/src-tauri/src/core/hwaccel.rs
index ec18ae4d..ea1b53c3 100644
--- a/src-tauri/src/core/hwaccel.rs
+++ b/src-tauri/src/core/hwaccel.rs
@@ -56,7 +56,7 @@ async fn detect_hwaccel_inner() -> HwAccelInfo {
}
async fn query_codecs(flag: &str) -> Vec<String> {
- let output = tokio::process::Command::new("ffmpeg")
+ let output = crate::core::process::command("ffmpeg")
.args([&format!("-{}", flag), "-hide_banner"])
.stdout(std::process::Stdio::piped())
.stderr(std::process::Stdio::piped())