datetime: fix compare function
authorTim-Philipp Müller <tim.muller@collabora.co.uk>
Wed, 27 Jun 2012 12:16:07 +0000 (13:16 +0100)
committerTim-Philipp Müller <tim.muller@collabora.co.uk>
Wed, 27 Jun 2012 12:51:33 +0000 (13:51 +0100)
commit5a6be2201dd4af0a57f634be90ed264d9ab4392d
tree89e064e491b2c31f698c467ebd6d451c551aa9ad
parent1eb9932dbbdfb8aa569d7e67bf68e47f2ddfb3b3
datetime: fix compare function

Take into account that not all fields might be valid (though they
are valid in the GDateTime structure). But we should just return
unordered if the set fields don't match. Also, don't check
microseconds when comparing datetimes, since we don't serialise
those by default if they're available. This ensures date times are
still regarded as equal after serialising+deserialising.
gst/gst_private.h
gst/gstdatetime.c
gst/gstvalue.c