Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.freedesktop.org/gstreamer/gst-plugins-rs.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastian Dröge <sebastian@centricular.com>2021-02-09 19:57:34 +0300
committerSebastian Dröge <sebastian@centricular.com>2021-02-09 19:57:34 +0300
commitcbda137fbf128be6eb39b8eff5c996494476cefb (patch)
treefee6c0f8838f2dc9d2ad3cb6dfb33255285b2b05 /video/dav1d
parentf63c4284c1f8661eae0df31bc949793bbf7a2c43 (diff)
Fix various warnings from clippy 1.50
Diffstat (limited to 'video/dav1d')
-rw-r--r--video/dav1d/src/dav1ddec/imp.rs15
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;
}
}
}