From 76d916f4277bf41d208e1ebc0a5bc29561a9999b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Dr=C3=B6ge?= Date: Thu, 4 Jul 2019 14:59:29 +0300 Subject: [PATCH] sodium: Statically register the plugin in the example So that it's not needed to set up GST_PLUGIN_PATH accordingly or install the plugin first before running the examples. --- gst-plugin-sodium/examples/decrypt_example.rs | 1 + gst-plugin-sodium/examples/encrypt_example.rs | 1 + 2 files changed, 2 insertions(+) diff --git a/gst-plugin-sodium/examples/decrypt_example.rs b/gst-plugin-sodium/examples/decrypt_example.rs index 606658616..9908a0fd3 100644 --- a/gst-plugin-sodium/examples/decrypt_example.rs +++ b/gst-plugin-sodium/examples/decrypt_example.rs @@ -72,6 +72,7 @@ fn main() -> Result<(), Box> { .get_matches(); gst::init()?; + gstsodium::plugin_register_static().expect("Failed to register sodium plugin"); let input_loc = matches.value_of("input").unwrap(); let out_loc = matches.value_of("output").unwrap(); diff --git a/gst-plugin-sodium/examples/encrypt_example.rs b/gst-plugin-sodium/examples/encrypt_example.rs index a0b9b2a37..6189e3242 100644 --- a/gst-plugin-sodium/examples/encrypt_example.rs +++ b/gst-plugin-sodium/examples/encrypt_example.rs @@ -72,6 +72,7 @@ fn main() -> Result<(), Box> { .get_matches(); gst::init()?; + gstsodium::plugin_register_static().expect("Failed to register sodium plugin"); let input_loc = matches.value_of("input").unwrap(); let out_loc = matches.value_of("output").unwrap();