tag: initialize datetime variable in xmp tag parsing code

Fixes (correct) compiler warning on the OSX build bot.
This commit is contained in:
Tim-Philipp Müller 2010-07-26 18:23:33 +02:00
parent f842c49f5d
commit db5d418282

View file

@ -877,7 +877,7 @@ read_one_tag (GstTagList * list, const gchar * tag, XmpTag * xmptag,
}
default:
if (tag_type == GST_TYPE_DATE_TIME) {
GstDateTime *datetime;
GstDateTime *datetime = NULL;
gint year = 0, month = 0, day = 0, hour = 0, minute = 0, second = 0;
gint usecs = 0;
gint gmt_offset_hour = -1, gmt_offset_min = -1, gmt_offset = -1;