sodium: rename plugin to 'gstsodium'

This commit is contained in:
Guillaume Desmottes 2019-05-29 15:37:26 +05:30
parent aa12b6bdc2
commit 3e01736caf
4 changed files with 8 additions and 8 deletions

View file

@ -31,7 +31,7 @@ git = "https://gitlab.freedesktop.org/gstreamer/gstreamer-rs"
package="gstreamer-app"
[lib]
name = "gstrssodium"
name = "gstsodium"
crate-type = ["cdylib", "rlib"]
path = "src/lib.rs"

View file

@ -74,13 +74,13 @@ fn plugin_init(plugin: &gst::Plugin) -> Result<(), glib::BoolError> {
}
gst_plugin_define!(
rssodium,
sodium,
"libsodium-based file encryption and decryption",
plugin_init,
"1.0",
"MIT/X11",
"rssodium",
"rssodium",
"sodium",
"sodium",
"https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs",
"2019-03-18"
);

View file

@ -27,7 +27,7 @@ extern crate lazy_static;
#[macro_use]
extern crate pretty_assertions;
extern crate gstrssodium;
extern crate gstsodium;
use glib::prelude::*;
use gst::prelude::*;
@ -59,7 +59,7 @@ fn init() {
INIT.call_once(|| {
gst::init().unwrap();
gstrssodium::plugin_register_static().unwrap();
gstsodium::plugin_register_static().unwrap();
});
}

View file

@ -24,7 +24,7 @@
#[macro_use]
extern crate lazy_static;
extern crate gstrssodium;
extern crate gstsodium;
use glib::prelude::*;
use gst::prelude::*;
@ -60,7 +60,7 @@ fn init() {
INIT.call_once(|| {
gst::init().unwrap();
gstrssodium::plugin_register_static().unwrap();
gstsodium::plugin_register_static().unwrap();
// set the nonce
std::env::set_var("GST_SODIUM_ENCRYPT_NONCE", hex::encode(&*NONCE));
});