After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 761462 - event: Get rid of timestamp field
event: Get rid of timestamp field
Status: RESOLVED FIXED
Product: GStreamer
Classification: Platform
Component: gstreamer (core)
2.x
Other All
: Normal enhancement
: git master
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2016-02-02 16:12 UTC by Kyrylo V. Polezhaiev
Modified: 2018-05-06 15:39 UTC
See Also:
GNOME target: ---
GNOME version: Unversioned Enhancement


Attachments
tagdemux: avoid timestamp field initialization for tag event (910 bytes, patch)
2016-02-02 16:29 UTC, Kyrylo V. Polezhaiev
none Details | Review
tagdemux: avoid timestamp field initialisation for tag event (927 bytes, patch)
2016-02-02 16:59 UTC, Kyrylo V. Polezhaiev
committed Details | Review
icydemux: avoid timestamp field initialisation for tag event (913 bytes, patch)
2016-02-02 17:02 UTC, Kyrylo V. Polezhaiev
committed Details | Review
gdp: ignore timestamp of event (1.82 KB, patch)
2016-02-02 17:23 UTC, Kyrylo V. Polezhaiev
committed Details | Review

Description Kyrylo V. Polezhaiev 2016-02-02 16:12:41 UTC
I just GstEventaully realised that today is the good time to begin getting rid of GstEvent::timestamp usage in gst-plugins-* repos.

Field itself will be removed in 2.0 API and should be kept now to preserve 1.x API / ABI compatibility.
Comment 1 Kyrylo V. Polezhaiev 2016-02-02 16:29:24 UTC
Created attachment 320271 [details] [review]
tagdemux: avoid timestamp field initialization for tag  event
Comment 2 Kyrylo V. Polezhaiev 2016-02-02 16:47:38 UTC
Review of attachment 320271 [details] [review]:

I will tweak message a bit.
Comment 3 Kyrylo V. Polezhaiev 2016-02-02 16:59:02 UTC
Created attachment 320275 [details] [review]
tagdemux: avoid timestamp field initialisation for tag event
Comment 4 Kyrylo V. Polezhaiev 2016-02-02 17:02:13 UTC
Created attachment 320276 [details] [review]
icydemux: avoid timestamp field initialisation for tag event
Comment 5 Kyrylo V. Polezhaiev 2016-02-02 17:23:10 UTC
Created attachment 320280 [details] [review]
gdp: ignore timestamp of event
Comment 6 Kyrylo V. Polezhaiev 2016-02-02 22:05:05 UTC
Anyone uses timestamp of "highlight" event (from bad plugin resindvd)?
https://bugzilla.gnome.org/show_bug.cgi?id=761477
Comment 7 Sebastian Dröge (slomo) 2016-02-16 11:20:37 UTC
basesink might do something based on the timestamp of the SEGMENT event for waiting, I remember something. Or maybe not. Needs to be checked.


In general, getting rid of the timestamp in GstEvents and GstMessages sounds like a good idea for 2.0
Comment 8 Kyrylo V. Polezhaiev 2016-02-16 13:16:24 UTC
I didn't found timestamp usage in basesink.

What do you think about cleanup timestamp usage in random places before getting rid of it in structures?
Comment 9 Jan Schmidt 2018-05-06 15:38:57 UTC

commit b4df0bf07afd6292786034ae424d8969310a779b (HEAD -> master, origin/master, origin/HEAD)
Author: Kyrylo Polezhaiev <kirushyk@gmail.com>
Date:   Tue Feb 2 18:19:30 2016 +0200

    tagdemux: avoid timestamp field initialisation for tag event
    
    This field is not used and will be removed in 2.0 API.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=761462

commit 70a55f90a3686836a956e61d367aec96cc6d3c3b (HEAD -> master)
Author: Kyrylo Polezhaiev <kirushyk@gmail.com>
Date:   Tue Feb 2 18:58:24 2016 +0200

    icydemux: avoid timestamp field initialisation for tag event
    
    This field is not used and will be removed in 2.0 API.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=761462

commit 48dd94a890e53b468bc8350f1b50237ba4a8f611 (HEAD -> master)
Author: Kyrylo Polezhaiev <kirushyk@gmail.com>
Date:   Tue Feb 2 19:18:26 2016 +0200

    gdp: ignore timestamp of event
    
    This field is not used and will be removed in 2.0 API.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=761462

commit 4ccc51ce15c03741aa9a8192c5092362063ca9cb (HEAD -> master)
Author: Jan Schmidt <jan@centricular.com>
Date:   Mon May 7 01:32:14 2018 +1000

    gstevent: Add some FIXME: 2.0 about removing the timestamp
    
    The timestamp field isn't valuable or used well anywhere. We
    should remove it for GStreamer 2.0
    
    https://bugzilla.gnome.org/show_bug.cgi?id=761462