diff options
author | Sebastian Dröge <sebastian@centricular.com> | 2019-01-21 23:13:07 +0300 |
---|---|---|
committer | Sebastian Dröge <sebastian@centricular.com> | 2019-01-21 23:13:07 +0300 |
commit | ccc3652a1a705cb641a38b782815cb8f662e1e9d (patch) | |
tree | 4838cd821c756a952f6276d76f5dbe7ad5a5db4d | |
parent | d7fc5ca2723c1f9271bc2c015f623705147dca37 (diff) |
plugin::register_static() can fail so don't let it silently fail
-rw-r--r-- | gst-plugin-closedcaption/tests/mcc_enc.rs | 2 | ||||
-rw-r--r-- | gst-plugin-closedcaption/tests/mcc_parse.rs | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/gst-plugin-closedcaption/tests/mcc_enc.rs b/gst-plugin-closedcaption/tests/mcc_enc.rs index 8ce51fdb9..4c114a65a 100644 --- a/gst-plugin-closedcaption/tests/mcc_enc.rs +++ b/gst-plugin-closedcaption/tests/mcc_enc.rs @@ -26,7 +26,7 @@ fn init() { INIT.call_once(|| { gst::init().unwrap(); - gstrsclosedcaption::plugin_register_static(); + gstrsclosedcaption::plugin_register_static().expect("mccenc test"); }); } diff --git a/gst-plugin-closedcaption/tests/mcc_parse.rs b/gst-plugin-closedcaption/tests/mcc_parse.rs index ec522d05c..984f77a9b 100644 --- a/gst-plugin-closedcaption/tests/mcc_parse.rs +++ b/gst-plugin-closedcaption/tests/mcc_parse.rs @@ -27,7 +27,7 @@ fn init() { INIT.call_once(|| { gst::init().unwrap(); - gstrsclosedcaption::plugin_register_static(); + gstrsclosedcaption::plugin_register_static().expect("mccparse test"); }); } |