diff options
author | Sebastian Dröge <sebastian@centricular.com> | 2021-09-18 10:53:55 +0300 |
---|---|---|
committer | Sebastian Dröge <sebastian@centricular.com> | 2021-09-18 11:58:59 +0300 |
commit | 4c8c398aa41ddb2b41b74d3f657682a5396864bd (patch) | |
tree | 40c35523149c47d8d94922ca6fdf0acb8dbac8f5 /video/dav1d | |
parent | f4613bfc072c2f8eda1e7c803bbc4788852f3117 (diff) |
dav1d: Don't configure a buffer pool and don't require one for videometa support
dav1d is allocating memory itself and we directly forward that without
using any downstream buffer pool.
Diffstat (limited to 'video/dav1d')
-rw-r--r-- | video/dav1d/src/dav1ddec/imp.rs | 14 |
1 files changed, 2 insertions, 12 deletions
diff --git a/video/dav1d/src/dav1ddec/imp.rs b/video/dav1d/src/dav1ddec/imp.rs index 2239e4874..7a42869d1 100644 --- a/video/dav1d/src/dav1ddec/imp.rs +++ b/video/dav1d/src/dav1ddec/imp.rs @@ -467,19 +467,9 @@ impl VideoDecoderImpl for Dav1dDec { query: &mut gst::QueryRef, ) -> Result<(), gst::ErrorMessage> { if let gst::query::QueryView::Allocation(allocation) = query.view() { - if allocation + self.negotiation_infos.lock().unwrap().video_meta_supported = allocation .find_allocation_meta::<gst_video::VideoMeta>() - .is_some() - { - let pools = allocation.allocation_pools(); - if let Some((Some(ref pool), _, _, _)) = pools.first() { - let mut config = pool.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; - } - } + .is_some(); } self.parent_decide_allocation(element, query) |