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.
This commit is contained in:
Rafał Dzięgiel
2024-04-29 17:50:47 +02:00
parent 6d47aa3c6d
commit 23c5e7ca65

View File

@@ -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 * 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); ClapperMarker * clapper_marker_new (ClapperMarkerType marker_type, const gchar *title, gdouble start, gdouble end);