mirror of
https://github.com/valmojr/armatak.git
synced 2026-06-13 17:13:29 +00:00
linted linux block because now i actually have to care about linux
This commit is contained in:
@@ -26,7 +26,7 @@ pub fn start_stream(
|
|||||||
) -> &'static str {
|
) -> &'static str {
|
||||||
#[cfg(target_os = "linux")]
|
#[cfg(target_os = "linux")]
|
||||||
{
|
{
|
||||||
ctx.callback_null(
|
_ = ctx.callback_null(
|
||||||
"VIDEO ERROR",
|
"VIDEO ERROR",
|
||||||
"Screen capture is only supported on Windows",
|
"Screen capture is only supported on Windows",
|
||||||
);
|
);
|
||||||
@@ -74,12 +74,11 @@ pub fn start_stream(
|
|||||||
}
|
}
|
||||||
Err(e) => {
|
Err(e) => {
|
||||||
let _ = status_tx.send(Err(format!("Failed to start FFmpeg: {}", e)));
|
let _ = status_tx.send(Err(format!("Failed to start FFmpeg: {}", e)));
|
||||||
// Return early, nothing else to do
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
// Save the stop channel so we can stop later
|
// Save the stop channel
|
||||||
match STREAM_CTRL.lock() {
|
match STREAM_CTRL.lock() {
|
||||||
Ok(mut lock) => *lock = Some(stop_tx),
|
Ok(mut lock) => *lock = Some(stop_tx),
|
||||||
Err(e) => {
|
Err(e) => {
|
||||||
|
|||||||
Reference in New Issue
Block a user