From 1b6cc98aa5a7a16e5662d71d5f7a911249c49abc Mon Sep 17 00:00:00 2001 From: Jan Schmidt Date: Fri, 4 May 2018 22:24:18 +1000 Subject: [PATCH] resindvsrc: Don't use the GST_EVENT_TIMESTAMP Store a PTS of a highlight event directly into the event structure, rather than the GST_EVENT_TIMESTAMP that will probably be removed in GStreamer 2.0, and is hardly used. https://bugzilla.gnome.org/show_bug.cgi?id=761477 --- ext/resindvd/resindvdsrc.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ext/resindvd/resindvdsrc.c b/ext/resindvd/resindvdsrc.c index ab89be709b..f18816019a 100644 --- a/ext/resindvd/resindvdsrc.c +++ b/ext/resindvd/resindvdsrc.c @@ -2207,7 +2207,8 @@ rsn_dvdsrc_update_highlight (resinDvdSrc * src) if (src->active_button < 1) { /* When setting the button for the first time, take the timestamp into account. */ - GST_EVENT_TIMESTAMP (event) = MPEGTIME_TO_GSTTIME (area.pts); + gst_structure_set (s, "ts", GST_TYPE_CLOCK_TIME, + MPEGTIME_TO_GSTTIME (area.pts), NULL); } src->active_button = button;