server fix

This commit is contained in:
Brad Stein 2025-06-23 20:51:52 -05:00
parent 374d323bf5
commit 53c86db00c

View File

@ -23,11 +23,9 @@ pub async fn spawn_camera(
); );
let pipeline = gst::parse_launch(&desc)?.downcast::<gst::Pipeline>()?; let pipeline = gst::parse_launch(&desc)?.downcast::<gst::Pipeline>()?;
let sink = pipeline let pipeline = gst::parse::launch(&desc)?
.by_name("sink") .downcast::<gst::Pipeline>()
.expect("appsink") .expect("pipeline down-cast");
.dynamic_cast::<gst_app::AppSink>()
.expect("appsink downcast");
let (tx, rx) = tokio::sync::mpsc::channel(256); let (tx, rx) = tokio::sync::mpsc::channel(256);