mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer-rs.git
synced 2024-11-25 19:11:06 +00:00
video: Use correct version for interlaced caps feature
This commit is contained in:
parent
2db7b8ebcc
commit
5845038a63
2 changed files with 6 additions and 2 deletions
|
@ -12,11 +12,13 @@ use std::ffi::CStr;
|
|||
|
||||
use once_cell::sync::Lazy;
|
||||
|
||||
#[cfg(any(feature = "v1_16", feature = "dox"))]
|
||||
pub static CAPS_FEATURE_FORMAT_INTERLACED: Lazy<&'static str> = Lazy::new(|| unsafe {
|
||||
CStr::from_ptr(gst_video_sys::GST_CAPS_FEATURE_FORMAT_INTERLACED)
|
||||
.to_str()
|
||||
.unwrap()
|
||||
});
|
||||
#[cfg(any(feature = "v1_16", feature = "dox"))]
|
||||
pub static CAPS_FEATURES_FORMAT_INTERLACED: Lazy<CapsFeatures> =
|
||||
Lazy::new(|| CapsFeatures::new(&[*CAPS_FEATURE_FORMAT_INTERLACED]));
|
||||
|
||||
|
|
|
@ -46,10 +46,12 @@ mod auto;
|
|||
pub use auto::*;
|
||||
|
||||
mod caps_features;
|
||||
#[cfg(any(feature = "v1_16", feature = "dox"))]
|
||||
pub use caps_features::{CAPS_FEATURES_FORMAT_INTERLACED, CAPS_FEATURE_FORMAT_INTERLACED};
|
||||
pub use caps_features::{
|
||||
CAPS_FEATURES_FORMAT_INTERLACED, CAPS_FEATURES_META_GST_VIDEO_AFFINE_TRANSFORMATION_META,
|
||||
CAPS_FEATURES_META_GST_VIDEO_AFFINE_TRANSFORMATION_META,
|
||||
CAPS_FEATURES_META_GST_VIDEO_GL_TEXTURE_UPLOAD_META, CAPS_FEATURES_META_GST_VIDEO_META,
|
||||
CAPS_FEATURES_META_GST_VIDEO_OVERLAY_COMPOSITION, CAPS_FEATURE_FORMAT_INTERLACED,
|
||||
CAPS_FEATURES_META_GST_VIDEO_OVERLAY_COMPOSITION,
|
||||
CAPS_FEATURE_META_GST_VIDEO_AFFINE_TRANSFORMATION_META,
|
||||
CAPS_FEATURE_META_GST_VIDEO_GL_TEXTURE_UPLOAD_META, CAPS_FEATURE_META_GST_VIDEO_META,
|
||||
CAPS_FEATURE_META_GST_VIDEO_OVERLAY_COMPOSITION,
|
||||
|
|
Loading…
Reference in a new issue