// Channel for outgoing WebSocket messages from other threads
let (send_ws_msg_tx, send_ws_msg_rx) = mpsc::unbounded::<WsMessage>();
- // Asynchronously set the pipeline to Playing
- pipeline.call_async(|pipeline| {
- pipeline
- .set_state(gst::State::Playing)
- .expect("Couldn't set pipeline to Playing");
- });
-
let app = App(Arc::new(AppInner {
args,
pipeline,
}
});
+ // Asynchronously set the pipeline to Playing
+ app.pipeline.call_async(|pipeline| {
+ pipeline
+ .set_state(gst::State::Playing)
+ .expect("Couldn't set pipeline to Playing");
+ });
+
Ok((app, send_gst_msg_rx, send_ws_msg_rx))
}