server fix

This commit is contained in:
Brad Stein 2025-06-23 20:57:18 -05:00
parent 53c86db00c
commit 8a1610ce92

View File

@ -21,12 +21,17 @@ pub async fn spawn_camera(
video/x-h264,stream-format=byte-stream,profile=baseline,level=4,\
bitrate={max_bitrate_kbit}000 ! appsink name=sink emit-signals=true sync=false"
);
let pipeline = gst::parse_launch(&desc)?.downcast::<gst::Pipeline>()?;
let pipeline = gst::parse::launch(&desc)?
.downcast::<gst::Pipeline>()
.expect("pipeline down-cast");
let sink = pipeline
.by_name("sink")
.expect("appsink")
.dynamic_cast::<gst_app::AppSink>()
.expect("appsink downcast");
let (tx, rx) = tokio::sync::mpsc::channel(256);
sink.set_callbacks(