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 dc8a7e1a4e6410b913ac6967a394d2819775d708..c63e2a77e63167d629b1e0ff25f84bc2aff58489 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 65b3a57ac13796ab1fd91fa5c5749b522b178298..e7521e9eddfdc594eadfcc381a5e9f22cbbd8e1d 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 */