validate: Fix padding and constants
authorPhilippe Normand <philn@igalia.com>
Mon, 28 Feb 2022 10:58:41 +0000 (10:58 +0000)
committerPhilippe Normand <philn@igalia.com>
Thu, 17 Mar 2022 14:48:34 +0000 (14:48 +0000)
Without this the Rust -sys validate crate tests don't pass.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/1810>

subprojects/gst-devtools/validate/gst/validate/gst-validate-scenario.h
subprojects/gst-devtools/validate/gst/validate/media-descriptor.h

index dc8a7e1..c63e2a7 100644 (file)
@@ -265,7 +265,7 @@ struct _GstValidateActionType
   GstValidateActionTypePrivate* priv;
 
   /*< private >*/
-  gpointer _gst_reserved[GST_PADDING_LARGE - sizeof (GstRank) - 2];
+  gpointer _gst_reserved[GST_PADDING_LARGE];
 };
 
 #ifndef __GI_SCANNER__
index 65b3a57..e7521e9 100644 (file)
 
 G_BEGIN_DECLS
 
-#define GST_VALIDATE_UNKNOWN_UINT64 (G_MAXUINT64 - 2)
-#define GST_VALIDATE_UNKNOWN_BOOL (G_MAXUINT32 - 2)
+#define GST_VALIDATE_UNKNOWN_UINT64 -1
+
+#define GST_VALIDATE_UNKNOWN_BOOL -1
+
 typedef struct
 {
   /* Children */