diff options
author | Thijs Vermeir <thijsvermeir@gmail.com> | 2018-11-04 21:46:07 +0300 |
---|---|---|
committer | Thijs Vermeir <thijsvermeir@gmail.com> | 2018-11-04 22:24:20 +0300 |
commit | cee861f341e66f2ed3501e0b4b667172b9ff8535 (patch) | |
tree | 6f689156f8ebbb560d36db4074779a9f89718b45 /gst-plugin-audiofx/src/audioecho.rs | |
parent | 46f80da72e456ab68b2d130d3f130a0a96f8130c (diff) |
use BoolError for plugin registration
Diffstat (limited to 'gst-plugin-audiofx/src/audioecho.rs')
-rw-r--r-- | gst-plugin-audiofx/src/audioecho.rs | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/gst-plugin-audiofx/src/audioecho.rs b/gst-plugin-audiofx/src/audioecho.rs index e04826ec3..81bffe357 100644 --- a/gst-plugin-audiofx/src/audioecho.rs +++ b/gst-plugin-audiofx/src/audioecho.rs @@ -306,10 +306,9 @@ impl ImplTypeStatic<BaseTransform> for AudioEchoStatic { } } -pub fn register(plugin: &gst::Plugin) { - let audioecho_static = AudioEchoStatic; - let type_ = register_type(audioecho_static); - gst::Element::register(plugin, "rsaudioecho", 0, type_); +pub fn register(plugin: &gst::Plugin) -> Result<(), glib::BoolError> { + let type_ = register_type(AudioEchoStatic); + gst::Element::register(plugin, "rsaudioecho", 0, type_) } struct RingBuffer { |