qtdemux: add code to parse creation time earlier than 1970
authorThiago Santos <thiago.sousa.santos@collabora.com>
Mon, 16 Sep 2013 14:20:51 +0000 (11:20 -0300)
committerThiago Santos <ts.santos@partner.samsung.com>
Tue, 24 Sep 2013 22:16:54 +0000 (15:16 -0700)
commitdc02d91c14847e48b6e830ff58f2dd27ecae336d
tree9e749d15fbbf9c19664a13a6ab6813569445ed73
parenta1a493dae4f7e0cdbbb9a04c40db757898831b57
qtdemux: add code to parse creation time earlier than 1970

Use g_date_time seconds manipulation to allow to cover the quicktime
spec for creation_time. It uses seconds since 1904.

Both paths could be done using the generic approach of seconds since
1904 with GDateTime handling, but the first path using seconds from
1970 should be more commonly found and avoids a few objects creation and
ref/unref, so keep it there for performance.

Additionally, the code for handling seconds since 1970 changed from >
to >= because having 0 seconds since 1970 is also a valid case for that
path to handle.

https://bugzilla.gnome.org/show_bug.cgi?id=707975
gst/isomp4/qtdemux.c