mirror of
https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs.git
synced 2025-01-11 19:55:25 +00:00
sodium: rename plugin to 'gstsodium'
This commit is contained in:
parent
aa12b6bdc2
commit
3e01736caf
4 changed files with 8 additions and 8 deletions
|
@ -31,7 +31,7 @@ git = "https://gitlab.freedesktop.org/gstreamer/gstreamer-rs"
|
||||||
package="gstreamer-app"
|
package="gstreamer-app"
|
||||||
|
|
||||||
[lib]
|
[lib]
|
||||||
name = "gstrssodium"
|
name = "gstsodium"
|
||||||
crate-type = ["cdylib", "rlib"]
|
crate-type = ["cdylib", "rlib"]
|
||||||
path = "src/lib.rs"
|
path = "src/lib.rs"
|
||||||
|
|
||||||
|
|
|
@ -74,13 +74,13 @@ fn plugin_init(plugin: &gst::Plugin) -> Result<(), glib::BoolError> {
|
||||||
}
|
}
|
||||||
|
|
||||||
gst_plugin_define!(
|
gst_plugin_define!(
|
||||||
rssodium,
|
sodium,
|
||||||
"libsodium-based file encryption and decryption",
|
"libsodium-based file encryption and decryption",
|
||||||
plugin_init,
|
plugin_init,
|
||||||
"1.0",
|
"1.0",
|
||||||
"MIT/X11",
|
"MIT/X11",
|
||||||
"rssodium",
|
"sodium",
|
||||||
"rssodium",
|
"sodium",
|
||||||
"https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs",
|
"https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs",
|
||||||
"2019-03-18"
|
"2019-03-18"
|
||||||
);
|
);
|
||||||
|
|
|
@ -27,7 +27,7 @@ extern crate lazy_static;
|
||||||
#[macro_use]
|
#[macro_use]
|
||||||
extern crate pretty_assertions;
|
extern crate pretty_assertions;
|
||||||
|
|
||||||
extern crate gstrssodium;
|
extern crate gstsodium;
|
||||||
|
|
||||||
use glib::prelude::*;
|
use glib::prelude::*;
|
||||||
use gst::prelude::*;
|
use gst::prelude::*;
|
||||||
|
@ -59,7 +59,7 @@ fn init() {
|
||||||
|
|
||||||
INIT.call_once(|| {
|
INIT.call_once(|| {
|
||||||
gst::init().unwrap();
|
gst::init().unwrap();
|
||||||
gstrssodium::plugin_register_static().unwrap();
|
gstsodium::plugin_register_static().unwrap();
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -24,7 +24,7 @@
|
||||||
|
|
||||||
#[macro_use]
|
#[macro_use]
|
||||||
extern crate lazy_static;
|
extern crate lazy_static;
|
||||||
extern crate gstrssodium;
|
extern crate gstsodium;
|
||||||
|
|
||||||
use glib::prelude::*;
|
use glib::prelude::*;
|
||||||
use gst::prelude::*;
|
use gst::prelude::*;
|
||||||
|
@ -60,7 +60,7 @@ fn init() {
|
||||||
|
|
||||||
INIT.call_once(|| {
|
INIT.call_once(|| {
|
||||||
gst::init().unwrap();
|
gst::init().unwrap();
|
||||||
gstrssodium::plugin_register_static().unwrap();
|
gstsodium::plugin_register_static().unwrap();
|
||||||
// set the nonce
|
// set the nonce
|
||||||
std::env::set_var("GST_SODIUM_ENCRYPT_NONCE", hex::encode(&*NONCE));
|
std::env::set_var("GST_SODIUM_ENCRYPT_NONCE", hex::encode(&*NONCE));
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in a new issue