Skip to main content

is_available

Function is_available 

Source
pub fn is_available() -> bool
Expand description

Shortcut: probe().is_available().

Use this in integration tests as a skip-guard so the test gracefully no-ops when GStreamer isn’t installed.

if !media::gstreamer::is_available() {
    eprintln!("skipping: GStreamer not on PATH");
    return;
}