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.
This commit is contained in:
Sebastian Dröge 2019-07-04 14:59:29 +03:00
parent e8d6a7cbd4
commit 2df6a5e049
2 changed files with 2 additions and 0 deletions

View file

@ -72,6 +72,7 @@ fn main() -> Result<(), Box<dyn Error>> {
.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();

View file

@ -72,6 +72,7 @@ fn main() -> Result<(), Box<dyn Error>> {
.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();