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: <https://gitlab.freedesktop.org/gstreamer/gstreamer-rs/-/merge_requests/1185>
This commit is contained in:
Christian Meissl 2023-01-07 18:28:30 +01:00
parent 84720eee66
commit da2eb50dd3

View file

@ -103,7 +103,7 @@ pub trait VideoBufferPoolConfig {
fn set_video_alignment(&mut self, align: &VideoAlignment); 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")] #[doc(alias = "gst_buffer_pool_config_get_video_alignment")]
fn video_alignment(&self) -> Option<VideoAlignment> { fn video_alignment(&self) -> Option<VideoAlignment> {
unsafe { unsafe {