From da2eb50dd3b7495f249cac1caadbdb61c2cd761d Mon Sep 17 00:00:00 2001 From: Christian Meissl Date: Sat, 7 Jan 2023 18:28:30 +0100 Subject: [PATCH] gstreamer-video: implement VideoBufferPoolConfig for BufferPoolConfigRef implementing VideoBufferPoolConfig for BufferPoolConfigRef instead of BufferPoolConfig allows to retrieve the VideoAlignment from within buffer pool set_config Part-of: --- gstreamer-video/src/video_buffer_pool.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gstreamer-video/src/video_buffer_pool.rs b/gstreamer-video/src/video_buffer_pool.rs index b019b8a60..d9db66ec8 100644 --- a/gstreamer-video/src/video_buffer_pool.rs +++ b/gstreamer-video/src/video_buffer_pool.rs @@ -103,7 +103,7 @@ pub trait VideoBufferPoolConfig { fn set_video_alignment(&mut self, align: &VideoAlignment); } -impl VideoBufferPoolConfig for gst::BufferPoolConfig { +impl VideoBufferPoolConfig for gst::BufferPoolConfigRef { #[doc(alias = "gst_buffer_pool_config_get_video_alignment")] fn video_alignment(&self) -> Option { unsafe {