avidemux: fix GstDateTime/GDateTime mixup
authorVincent Penquerc'h <vincent.penquerch@collabora.co.uk>
Thu, 26 Jan 2012 17:50:30 +0000 (17:50 +0000)
committerVincent Penquerc'h <vincent.penquerch@collabora.co.uk>
Thu, 26 Jan 2012 17:52:30 +0000 (17:52 +0000)
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.

gst/avi/gstavidemux.c

index 6e19e61..3f72f48 100644 (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)
 {
   GDate *date;
-  GstDateTime *dt;
+  GDateTime *dt;
 
   date = g_date_new_dmy (d, m, y);
   if (!g_date_valid (date)) {
@@ -3422,7 +3422,7 @@ gst_avi_demux_add_date_tag (GstAviDemux * avi, gint y, gint m, gint d,
     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)
     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) {
     gst_tag_list_add (avi->globaltags, GST_TAG_MERGE_REPLACE, GST_TAG_DATE_TIME,
         dt, NULL);
-    gst_date_time_unref (dt);
+    g_date_time_unref (dt);
   }
 }