server fix
This commit is contained in:
parent
374d323bf5
commit
53c86db00c
@ -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);
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user