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
This commit is contained in:
Jan Schmidt 2018-05-04 22:24:18 +10:00
parent 0869c06f9d
commit 1b6cc98aa5

View file

@ -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;