diff options
author | Sebastian Dröge <sebastian@centricular.com> | 2019-01-29 18:26:40 +0300 |
---|---|---|
committer | Sebastian Dröge <sebastian@centricular.com> | 2019-01-29 18:33:06 +0300 |
commit | 9db02cb55e7769847747e74a833568bb23a68d0f (patch) | |
tree | 986c98910bcc19b8d291d67a51d3433be953ee03 /gst-plugin-audiofx/src/audioecho.rs | |
parent | 2a656a98b66c133b63225b049fb9dba44d420218 (diff) |
Fixes for gstreamer-rs API changes
Creating pad templates can return None now.
Diffstat (limited to 'gst-plugin-audiofx/src/audioecho.rs')
-rw-r--r-- | gst-plugin-audiofx/src/audioecho.rs | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/gst-plugin-audiofx/src/audioecho.rs b/gst-plugin-audiofx/src/audioecho.rs index 4fe136f24..a5b7e04a0 100644 --- a/gst-plugin-audiofx/src/audioecho.rs +++ b/gst-plugin-audiofx/src/audioecho.rs @@ -172,7 +172,8 @@ impl ObjectSubclass for AudioEcho { gst::PadDirection::Src, gst::PadPresence::Always, &caps, - ); + ) + .unwrap(); klass.add_pad_template(src_pad_template); let sink_pad_template = gst::PadTemplate::new( @@ -180,7 +181,8 @@ impl ObjectSubclass for AudioEcho { gst::PadDirection::Sink, gst::PadPresence::Always, &caps, - ); + ) + .unwrap(); klass.add_pad_template(sink_pad_template); klass.install_properties(&PROPERTIES); |