[0.11] gst-plugins-ugly: GST_TYPE_DATE -> G_TYPE_DATE

Tim Müller tpm at kemper.freedesktop.org
Thu Jan 12 16:18:48 PST 2012


Module: gst-plugins-ugly
Branch: 0.11
Commit: 86313742d4c11c1ca8705de1265acb4cb8af39cf
URL:    http://cgit.freedesktop.org/gstreamer/gst-plugins-ugly/commit/?id=86313742d4c11c1ca8705de1265acb4cb8af39cf

Author: Tim-Philipp Müller <tim.muller at collabora.co.uk>
Date:   Fri Jan 13 00:05:50 2012 +0000

GST_TYPE_DATE -> G_TYPE_DATE

---

 gst/asfdemux/gstasfdemux.c |    8 +++-----
 1 files changed, 3 insertions(+), 5 deletions(-)

diff --git a/gst/asfdemux/gstasfdemux.c b/gst/asfdemux/gstasfdemux.c
index 9d7cd40..1fa4e90 100644
--- a/gst/asfdemux/gstasfdemux.c
+++ b/gst/asfdemux/gstasfdemux.c
@@ -2679,11 +2679,9 @@ gst_asf_demux_process_ext_content_desc (GstASFDemux * demux, guint8 * data,
                 guint year = atoi (value_utf8);
 
                 if (year > 0) {
-                  GDate *date = g_date_new_dmy (1, 1, year);
-
-                  g_value_init (&tag_value, GST_TYPE_DATE);
-                  gst_value_set_date (&tag_value, date);
-                  g_date_free (date);
+                  /* FIXME: really want a GDateTime with just the year field */
+                  g_value_init (&tag_value, G_TYPE_DATE);
+                  g_value_take_boxed (&tag_value, g_date_new_dmy (1, 1, year));
                 }
               } else if (strcmp (gst_tag_name, GST_TAG_GENRE) == 0) {
                 guint id3v1_genre_id;



More information about the gstreamer-commits mailing list