avidemux: fix GstDateTime/GDateTime mixup

This is a blind fix to match the one I just made to qtdemux,
as I do not have an AVI file where the code gets executed.
This commit is contained in:
Vincent Penquerc'h 2012-01-26 17:50:30 +00:00
parent 5326126112
commit acc9f15096

View file

@ -3412,7 +3412,7 @@ gst_avi_demux_add_date_tag (GstAviDemux * avi, gint y, gint m, gint d,
gint h, gint min, gint s) gint h, gint min, gint s)
{ {
GDate *date; GDate *date;
GstDateTime *dt; GDateTime *dt;
date = g_date_new_dmy (d, m, y); date = g_date_new_dmy (d, m, y);
if (!g_date_valid (date)) { if (!g_date_valid (date)) {
@ -3422,7 +3422,7 @@ gst_avi_demux_add_date_tag (GstAviDemux * avi, gint y, gint m, gint d,
return; return;
} }
dt = gst_date_time_new_local_time (y, m, d, h, min, s); dt = g_date_time_new_local (y, m, d, h, min, s);
if (avi->globaltags == NULL) if (avi->globaltags == NULL)
avi->globaltags = gst_tag_list_new_empty (); avi->globaltags = gst_tag_list_new_empty ();
@ -3433,7 +3433,7 @@ gst_avi_demux_add_date_tag (GstAviDemux * avi, gint y, gint m, gint d,
if (dt) { if (dt) {
gst_tag_list_add (avi->globaltags, GST_TAG_MERGE_REPLACE, GST_TAG_DATE_TIME, gst_tag_list_add (avi->globaltags, GST_TAG_MERGE_REPLACE, GST_TAG_DATE_TIME,
dt, NULL); dt, NULL);
gst_date_time_unref (dt); g_date_time_unref (dt);
} }
} }