mirror of
https://github.com/v0l/zap-stream-core.git
synced 2025-06-22 14:28:05 +00:00
feat: clean shutdown RTMP stream
All checks were successful
continuous-integration/drone Build is passing
All checks were successful
continuous-integration/drone Build is passing
This commit is contained in:
@ -1,8 +1,9 @@
|
||||
use crate::overseer::Overseer;
|
||||
use crate::pipeline::runner::PipelineRunner;
|
||||
use crate::pipeline::runner::{PipelineCommand, PipelineRunner};
|
||||
use log::{error, info, warn};
|
||||
use serde::{Deserialize, Serialize};
|
||||
use std::io::Read;
|
||||
use std::sync::mpsc::Receiver;
|
||||
use std::sync::Arc;
|
||||
use std::time::Instant;
|
||||
use tokio::runtime::Handle;
|
||||
@ -40,8 +41,10 @@ pub fn spawn_pipeline(
|
||||
out_dir: String,
|
||||
seer: Arc<dyn Overseer>,
|
||||
reader: Box<dyn Read + Send>,
|
||||
url: Option<String>,
|
||||
rx: Option<Receiver<PipelineCommand>>,
|
||||
) {
|
||||
match PipelineRunner::new(handle, out_dir, seer, info, reader, None) {
|
||||
match PipelineRunner::new(handle, out_dir, seer, info, reader, url, rx) {
|
||||
Ok(pl) => match run_pipeline(pl) {
|
||||
Ok(_) => {}
|
||||
Err(e) => {
|
||||
|
Reference in New Issue
Block a user