gstreamer: Create plugins with version 1.21 if v1_22 is selected

This commit is contained in:
Sebastian Dröge 2022-03-15 15:04:49 +02:00
parent 54440e47df
commit 12f1483d43

View file

@ -3,7 +3,9 @@
pub const MAJOR_VERSION: i32 = 1; pub const MAJOR_VERSION: i32 = 1;
cfg_if::cfg_if! { cfg_if::cfg_if! {
if #[cfg(feature = "v1_20")] { if #[cfg(feature = "v1_22")] {
pub const MINOR_VERSION: i32 = 21;
} else if #[cfg(feature = "v1_20")] {
pub const MINOR_VERSION: i32 = 20; pub const MINOR_VERSION: i32 = 20;
} else if #[cfg(feature = "v1_18")] { } else if #[cfg(feature = "v1_18")] {
pub const MINOR_VERSION: i32 = 18; pub const MINOR_VERSION: i32 = 18;