Audio codec libfdk_aac

This commit is contained in:
2024-03-27 16:33:43 +00:00
parent 298bfd994b
commit 9c4969cf95
16 changed files with 549 additions and 127 deletions

View File

@ -2,7 +2,7 @@ use std::ops::Add;
use std::time::{Duration, Instant};
use anyhow::Error;
use log::info;
use log::{info, warn};
use tokio::sync::broadcast;
use tokio::sync::mpsc::{unbounded_channel, UnboundedReceiver};
@ -59,7 +59,7 @@ impl PipelineRunner {
}
pub fn run(&mut self) -> Result<(), Error> {
if let Some(info) = &self.stream_info {
/*if let Some(info) = &self.stream_info {
if let Some(v_stream) = info
.channels
.iter()
@ -73,7 +73,7 @@ impl PipelineRunner {
std::thread::sleep(poll_sleep);
}
}
}
}*/
if let Some(cfg) = self.demuxer.process()? {
self.configure_pipeline(cfg)?;
}