diff --git a/src/video_stream.rs b/src/video_stream.rs index b1c3951..69fe5e0 100644 --- a/src/video_stream.rs +++ b/src/video_stream.rs @@ -1,5 +1,6 @@ use arma_rs::Context; use lazy_static::lazy_static; +use std::os::windows::process::CommandExt; use std::process::Command; use std::sync::mpsc::{self, Receiver, Sender}; use std::sync::Mutex; @@ -9,6 +10,8 @@ lazy_static! { static ref STREAM_CTRL: Mutex>> = Mutex::new(None); } +const CREATE_NO_WINDOW: u32 = 0x08000000; + pub fn start_stream( ctx: Context, address: String, @@ -37,6 +40,7 @@ pub fn start_stream( "tcp", &rtsp_url_clone, ]) + .creation_flags(CREATE_NO_WINDOW) .spawn() { Ok(child) => child,