projects
/
platform
/
upstream
/
gstreamer.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
79ddce2
)
event: fix seek event creation
author
Philipp Zabel
<p.zabel@pengutronix.de>
Fri, 12 Apr 2019 14:37:18 +0000
(16:37 +0200)
committer
Philipp Zabel
<philipp.zabel@gmail.com>
Fri, 12 Apr 2019 16:30:12 +0000
(18:30 +0200)
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
patch
|
blob
|
history
diff --git
a/gst/gstevent.c
b/gst/gstevent.c
index
2bd06d7
..
f4bb816
100644
(file)
--- 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;