From b99bca2790e0e63ce573ad2b9a0aa5a72995fa76 Mon Sep 17 00:00:00 2001
From: Philipp Zabel
Date: Fri, 12 Apr 2019 16:37:18 +0200
Subject: [PATCH] event: fix seek event creation
Creating seek events segfaults on 32-bit ARM since commit 2fa15d53717c
('event: add new seek parameter, "trickmode-interval"'), which missed
casting the trickmode-interval initializer in the variable argument list
to guint64.
---
gst/gstevent.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/gst/gstevent.c b/gst/gstevent.c
index 2bd06d7964..f4bb816863 100644
--- a/gst/gstevent.c
+++ b/gst/gstevent.c
@@ -1307,7 +1307,8 @@ gst_event_new_seek (gdouble rate, GstFormat format, GstSeekFlags flags,
GST_QUARK (CUR), G_TYPE_INT64, start,
GST_QUARK (STOP_TYPE), GST_TYPE_SEEK_TYPE, stop_type,
GST_QUARK (STOP), G_TYPE_INT64, stop,
- GST_QUARK (TRICKMODE_INTERVAL), GST_TYPE_CLOCK_TIME, 0, NULL);
+ GST_QUARK (TRICKMODE_INTERVAL), GST_TYPE_CLOCK_TIME, (GstClockTime) 0,
+ NULL);
event = gst_event_new_custom (GST_EVENT_SEEK, structure);
return event;