video: Use correct version for interlaced caps feature

This commit is contained in:
Sebastian Dröge 2020-07-03 12:23:52 +03:00
parent 2db7b8ebcc
commit 5845038a63
2 changed files with 6 additions and 2 deletions

View file

@ -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]));

View file

@ -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,