Index: metadata/rb-metadata-gst.c
===================================================================
RCS file: /cvs/gnome/rhythmbox/metadata/rb-metadata-gst.c,v
retrieving revision 1.58
diff -u -u -r1.58 rb-metadata-gst.c
--- metadata/rb-metadata-gst.c	17 Jan 2006 07:54:11 -0000	1.58
+++ metadata/rb-metadata-gst.c	23 Jan 2006 03:17:05 -0000
@@ -86,6 +86,15 @@
 
 #define RB_METADATA_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), RB_TYPE_METADATA, RBMetaDataPrivate))
 
+#ifdef HAVE_GSTREAMER_0_10
+static void
+gst_date_transform (const GValue *src, GValue *dest)
+{
+	const GDate *date = gst_value_get_date (src);
+
+	g_value_set_ulong (dest, (date) ? g_date_get_julian (date) : 0);
+}
+#endif
 
 static void
 rb_metadata_class_init (RBMetaDataClass *klass)
@@ -95,6 +104,9 @@
 	object_class->finalize = rb_metadata_finalize;
 
 	g_type_class_add_private (klass, sizeof (RBMetaDataPrivate));
+#ifdef HAVE_GSTREAMER_0_10
+	g_value_register_transform_func (GST_TYPE_DATE, G_TYPE_ULONG, gst_date_transform);
+#endif
 }
 
 
