2022-02-28 11:03:21 +00:00
|
|
|
// This file was generated by gir (https://github.com/gtk-rs/gir)
|
|
|
|
// from gir-files (https://github.com/gtk-rs/gir-files)
|
|
|
|
// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git)
|
|
|
|
// DO NOT EDIT
|
|
|
|
|
2023-01-03 18:56:00 +00:00
|
|
|
use crate::{BinMonitor, ElementMonitor, Monitor, Reporter, Runner};
|
|
|
|
use glib::{prelude::*, translate::*};
|
2022-02-28 11:03:21 +00:00
|
|
|
|
|
|
|
glib::wrapper! {
|
|
|
|
#[doc(alias = "GstValidatePipelineMonitor")]
|
|
|
|
pub struct PipelineMonitor(Object<ffi::GstValidatePipelineMonitor, ffi::GstValidatePipelineMonitorClass>) @extends BinMonitor, ElementMonitor, Monitor, gst::Object, @implements Reporter;
|
|
|
|
|
|
|
|
match fn {
|
|
|
|
type_ => || ffi::gst_validate_pipeline_monitor_get_type(),
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
impl PipelineMonitor {
|
|
|
|
pub const NONE: Option<&'static PipelineMonitor> = None;
|
|
|
|
|
|
|
|
#[doc(alias = "gst_validate_pipeline_monitor_new")]
|
|
|
|
pub fn new(
|
|
|
|
pipeline: &impl IsA<gst::Pipeline>,
|
|
|
|
runner: &impl IsA<Runner>,
|
2022-08-31 18:29:08 +00:00
|
|
|
parent: Option<&impl IsA<Monitor>>,
|
2022-02-28 11:03:21 +00:00
|
|
|
) -> PipelineMonitor {
|
|
|
|
skip_assert_initialized!();
|
|
|
|
unsafe {
|
2022-08-31 18:29:08 +00:00
|
|
|
from_glib_full(ffi::gst_validate_pipeline_monitor_new(
|
2022-02-28 11:03:21 +00:00
|
|
|
pipeline.as_ref().to_glib_none().0,
|
|
|
|
runner.as_ref().to_glib_none().0,
|
2022-08-31 18:29:08 +00:00
|
|
|
parent.map(|p| p.as_ref()).to_glib_none().0,
|
2022-02-28 11:03:21 +00:00
|
|
|
))
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
unsafe impl Send for PipelineMonitor {}
|
|
|
|
unsafe impl Sync for PipelineMonitor {}
|