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/cdg | |
parent | f63c4284c1f8661eae0df31bc949793bbf7a2c43 (diff) |
Fix various warnings from clippy 1.50
Diffstat (limited to 'video/cdg')
-rw-r--r-- | video/cdg/src/cdgdec/imp.rs | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/video/cdg/src/cdgdec/imp.rs b/video/cdg/src/cdgdec/imp.rs index 6893478ce..4f892c42c 100644 --- a/video/cdg/src/cdgdec/imp.rs +++ b/video/cdg/src/cdgdec/imp.rs @@ -214,14 +214,11 @@ impl VideoDecoderImpl for CdgDec { .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]) - })?; - } + 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]))?; } } } |