tracers: Enable PipelineSnapshot only for unix target

This implementation does not support the other targets
(it uses SIGUSR1 which does not exist on Windows)
and would not be compiled
This commit is contained in:
Seungha Yang 2022-08-09 20:19:07 +09:00 committed by Sebastian Dröge
parent 7eea27aefc
commit a9a41a54be

View file

@ -10,10 +10,12 @@
use gst::glib; use gst::glib;
mod buffer_lateness; mod buffer_lateness;
#[cfg(unix)]
mod pipeline_snapshot; mod pipeline_snapshot;
mod queue_levels; mod queue_levels;
fn plugin_init(plugin: &gst::Plugin) -> Result<(), glib::BoolError> { fn plugin_init(plugin: &gst::Plugin) -> Result<(), glib::BoolError> {
#[cfg(unix)]
pipeline_snapshot::register(plugin)?; pipeline_snapshot::register(plugin)?;
queue_levels::register(plugin)?; queue_levels::register(plugin)?;
buffer_lateness::register(plugin)?; buffer_lateness::register(plugin)?;