mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer-rs.git
synced 2024-11-25 11:01:10 +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/1597>
This commit is contained in:
parent
bbdfc07dc0
commit
9596ef8338
1 changed files with 7 additions and 1 deletions
|
@ -188,7 +188,13 @@ mod tests {
|
|||
)
|
||||
);
|
||||
check_serialize!(crate::MetaFlags::all(), "\"readonly+pooled+locked\"");
|
||||
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