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 sink = pipeline
.by_name("sink")
.expect("appsink")
.dynamic_cast::<gst_app::AppSink>()
.expect("appsink downcast");
let pipeline = gst::parse::launch(&desc)?
.downcast::<gst::Pipeline>()
.expect("pipeline down-cast");
let (tx, rx) = tokio::sync::mpsc::channel(256);