1#![allow(clippy::non_send_fields_in_send_ty, unused_doc_comments)]
2
3use std::sync::LazyLock;
4
5use gst::glib;
6
7mod check_last_frame_qrcode;
8
9pub(crate) static CAT: LazyLock<gst::DebugCategory> = LazyLock::new(|| {
10 gst::DebugCategory::new(
11 "rsvalidate",
12 gst::DebugColorFlags::empty(),
13 Some("GStreamer Validate Rust Plugin"),
14 )
15});
16
17fn plugin_init(plugin: &gst::Plugin) -> Result<(), glib::BoolError> {
18 if let Err(err) = check_last_frame_qrcode::register_validate_actions(plugin) {
19 gst::warning!(
20 gst::CAT_RUST,
21 "Failed to register validate actions: {}",
22 err
23 );
24
25 return Err(err);
26 }
27
28 Ok(())
29}
30
31gst::plugin_define!(
32 rsvalidate,
33 env!("CARGO_PKG_DESCRIPTION"),
34 plugin_init,
35 concat!(env!("CARGO_PKG_VERSION"), "-", env!("COMMIT_ID")),
36 "MPL-2.0",
37 env!("CARGO_PKG_NAME"),
38 env!("CARGO_PKG_NAME"),
39 env!("CARGO_PKG_REPOSITORY"),
40 env!("BUILD_REL_DATE")
41);