mirror of
https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs.git
synced 2024-11-27 05:51:01 +00:00
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:
parent
e8d6a7cbd4
commit
2df6a5e049
2 changed files with 2 additions and 0 deletions
|
@ -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();
|
||||
|
|
|
@ -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();
|
||||
|
|
Loading…
Reference in a new issue