plugin::register_static() can fail so don't let it silently fail

This commit is contained in:
Sebastian Dröge 2019-01-21 22:13:07 +02:00
parent d7fc5ca272
commit ccc3652a1a
2 changed files with 2 additions and 2 deletions

View file

@ -26,7 +26,7 @@ fn init() {
INIT.call_once(|| {
gst::init().unwrap();
gstrsclosedcaption::plugin_register_static();
gstrsclosedcaption::plugin_register_static().expect("mccenc test");
});
}

View file

@ -27,7 +27,7 @@ fn init() {
INIT.call_once(|| {
gst::init().unwrap();
gstrsclosedcaption::plugin_register_static();
gstrsclosedcaption::plugin_register_static().expect("mccparse test");
});
}