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 641871 - [gstvorbistag] report date/time tag using GST_TAG_DATE_TIME
[gstvorbistag] report date/time tag using GST_TAG_DATE_TIME
Status: RESOLVED FIXED
Product: GStreamer
Classification: Platform
Component: gst-plugins-base
git master
Other Linux
: Normal enhancement
: 0.11.x
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2011-02-08 20:25 UTC by Tobias Rapp
Modified: 2012-07-14 13:03 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
gstvorbistag: Add date/time support (3.84 KB, patch)
2011-02-08 20:40 UTC, Tobias Rapp
none Details | Review
gstvorbistag: Add date/time support (4.65 KB, patch)
2011-02-08 20:48 UTC, Tobias Rapp
reviewed Details | Review

Description Tobias Rapp 2011-02-08 20:25:38 UTC
Currently elements reporting vorbis-comment based tags like flacdec do only emit date information as a GST_TAG_DATE tag. It would be good to report full date/time information (if available) using the recently added GST_TAG_DATE_TIME tag.

Example of date/time strings that should be reported:
 - using default (local) timezone:
   DATE=2011-01-19 20:33
   DATE=2011-01-19 20:33:45
   DATE=2011-01-19T20:33:45.123456

 - using a specific timezone:
   DATE=2011-01-19 20:33Z
   DATE=2011-01-19T20:33:45Z
   DATE=2011-01-19T20:33:45+01:00
Comment 1 Tobias Rapp 2011-02-08 20:40:49 UTC
Created attachment 180416 [details] [review]
gstvorbistag: Add date/time support

Added patch that implements date/time support for vorbis-comment date tags. Followed the existing code style which uses strtoul() for string parsing. Not sure if it would be better to rewrite the code using sscanf().
Comment 2 Tobias Rapp 2011-02-08 20:48:38 UTC
Created attachment 180418 [details] [review]
gstvorbistag: Add date/time support
Comment 3 Tobias Rapp 2011-02-08 20:51:12 UTC
Comment on attachment 180418 [details] [review]
gstvorbistag: Add date/time support


Accidentally attached an old patch. This patch has support for parsing microseconds and performs some validity check before creating the GstDateTime instance.
Comment 4 Tim-Philipp Müller 2012-07-14 13:02:02 UTC
Hrm, sorry, I wasn't aware of or had forgotten about this patch. In any case, it's fixed in git master (0.11/1.0) now:


commit bc94374a8f28e3386161c401a25a88d818a70bb9
Author: Oleksij Rempel <bug-track@fisher-privat.net>
Date:   Wed Jun 27 16:25:06 2012 +0200

    vorbistag: store DATE tag in GST_TAG_DATE_TIME instead of GST_TAG_DATE
    
    The DATE field may contain dates, partial dates, or dates with
    time. Store the result in GST_TAG_DATE_TIME, so we can express
    properly which fields are present or not, and can store the
    time if there is one, and can serialise and deserialise the
    tag without loss of information and without making up
    information that's not there.
    
    Instead of using short YYYY-MM-DD form we will store
    long YYYY-MM-DDTHH:MM:SS+TS date and time.
    
    According to this documentation we can do it:
    http://wiki.xiph.org/VorbisComment#Date_and_time
    
    This datetime format is needed by apps where more information
    is needed. For example voice, meeting recording, etc.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=677712