mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer-rs.git
synced 2024-11-21 17:11:04 +00:00
gst: fix serde test for ObjectFlags::all()
GStreamer 1.24 added `GST_OBJECT_FLAG_CONSTRUCTED`, so `ObjectFlags::all()` returns a different set depending on the version feature. Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer-rs/-/merge_requests/1590>
This commit is contained in:
parent
87cfa2f959
commit
ae0283f154
1 changed files with 7 additions and 1 deletions
|
@ -188,7 +188,13 @@ mod tests {
|
|||
)
|
||||
);
|
||||
check_serialize!(crate::MetaFlags::all(), "\"readonly+pooled+locked\"");
|
||||
check_serialize!(crate::ObjectFlags::all(), "\"may-be-leaked+constructed\"");
|
||||
cfg_if::cfg_if! {
|
||||
if #[cfg(feature = "v1_24")] {
|
||||
check_serialize!(crate::ObjectFlags::all(), "\"may-be-leaked+constructed\"");
|
||||
} else {
|
||||
check_serialize!(crate::ObjectFlags::all(), "\"may-be-leaked\"");
|
||||
}
|
||||
}
|
||||
check_serialize!(
|
||||
crate::PadFlags::all(),
|
||||
concat!(
|
||||
|
|
Loading…
Reference in a new issue