From 2505d343df293849578e79351efd4e9303decc7c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rafa=C5=82=20Dzi=C4=99giel?= Date: Mon, 29 Apr 2024 17:50:47 +0200 Subject: [PATCH] clapper: Fix MARKER_NO_END value in GIR Needs a cast from int, otherwise GIR is generated incorrectly and it ends up as positive number. --- src/lib/clapper/clapper-marker.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/clapper/clapper-marker.h b/src/lib/clapper/clapper-marker.h index 8f10bc42..49398479 100644 --- a/src/lib/clapper/clapper-marker.h +++ b/src/lib/clapper/clapper-marker.h @@ -43,7 +43,7 @@ G_DECLARE_FINAL_TYPE (ClapperMarker, clapper_marker, CLAPPER, MARKER, GstObject) * * The value used to indicate that marker does not have an ending time specified */ -#define CLAPPER_MARKER_NO_END (-1.0) +#define CLAPPER_MARKER_NO_END ((gdouble) -1) // Needs a cast from int, otherwise GIR is generated incorrectly ClapperMarker * clapper_marker_new (ClapperMarkerType marker_type, const gchar *title, gdouble start, gdouble end);