diff options
author | Sebastian Dröge <sebastian@centricular.com> | 2021-02-09 19:57:34 +0300 |
---|---|---|
committer | Sebastian Dröge <sebastian@centricular.com> | 2021-02-09 19:57:34 +0300 |
commit | cbda137fbf128be6eb39b8eff5c996494476cefb (patch) | |
tree | fee6c0f8838f2dc9d2ad3cb6dfb33255285b2b05 /video/dav1d | |
parent | f63c4284c1f8661eae0df31bc949793bbf7a2c43 (diff) |
Fix various warnings from clippy 1.50
Diffstat (limited to 'video/dav1d')
-rw-r--r-- | video/dav1d/src/dav1ddec/imp.rs | 15 |
1 files changed, 6 insertions, 9 deletions
diff --git a/video/dav1d/src/dav1ddec/imp.rs b/video/dav1d/src/dav1ddec/imp.rs index c17501194..b2b6c9f10 100644 --- a/video/dav1d/src/dav1ddec/imp.rs +++ b/video/dav1d/src/dav1ddec/imp.rs @@ -494,15 +494,12 @@ impl VideoDecoderImpl for Dav1dDec { .is_some() { let pools = allocation.get_allocation_pools(); - if let Some((ref pool, _, _, _)) = pools.first() { - if let Some(pool) = pool { - let mut config = pool.get_config(); - config.add_option(&gst_video::BUFFER_POOL_OPTION_VIDEO_META); - pool.set_config(config).map_err(|e| { - gst::error_msg!(gst::CoreError::Negotiation, [&e.message]) - })?; - self.negotiation_infos.lock().unwrap().video_meta_supported = true; - } + if let Some((Some(ref pool), _, _, _)) = pools.first() { + let mut config = pool.get_config(); + config.add_option(&gst_video::BUFFER_POOL_OPTION_VIDEO_META); + pool.set_config(config) + .map_err(|e| gst::error_msg!(gst::CoreError::Negotiation, [&e.message]))?; + self.negotiation_infos.lock().unwrap().video_meta_supported = true; } } } |