mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer-rs.git
synced 2024-11-29 04:51:09 +00:00
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:
parent
84720eee66
commit
da2eb50dd3
1 changed files with 1 additions and 1 deletions
|
@ -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 {
|
||||||
|
|
Loading…
Reference in a new issue