diff --git a/gst-libs/gst/tag/gstvorbistag.c b/gst-libs/gst/tag/gstvorbistag.c index f4df412461..63ea2f640b 100644 --- a/gst-libs/gst/tag/gstvorbistag.c +++ b/gst-libs/gst/tag/gstvorbistag.c @@ -272,7 +272,7 @@ gst_vorbis_tag_add (GstTagList * list, const gchar * tag, const gchar * value) break; } default:{ - if (tag_type == GST_TYPE_DATE) { + if (tag_type == G_TYPE_DATE) { guint y, d = 1, m = 1; gchar *check = (gchar *) value; @@ -728,7 +728,7 @@ gst_tag_to_vorbis_comments (const GstTagList * list, const gchar * tag) break; } default:{ - if (tag_type == GST_TYPE_DATE) { + if (tag_type == G_TYPE_DATE) { GDate *date; if (!gst_tag_list_get_date_index (list, tag, i, &date)) diff --git a/gst-libs/gst/tag/gstxmptag.c b/gst-libs/gst/tag/gstxmptag.c index 9cd07041f3..0c363c0d84 100644 --- a/gst-libs/gst/tag/gstxmptag.c +++ b/gst-libs/gst/tag/gstxmptag.c @@ -1222,7 +1222,7 @@ read_one_tag (GstTagList * list, XmpTag * xmptag, gst_date_time_unref (datetime); } - } else if (tag_type == GST_TYPE_DATE) { + } else if (tag_type == G_TYPE_DATE) { GDate *date; gint d, m, y; @@ -1628,8 +1628,8 @@ gst_value_serialize_xmp (const GValue * value) break; } /* put non-switchable types here */ - if (G_VALUE_TYPE (value) == GST_TYPE_DATE) { - const GDate *date = gst_value_get_date (value); + if (G_VALUE_TYPE (value) == G_TYPE_DATE) { + const GDate *date = g_value_get_boxed (value); return g_strdup_printf ("%04d-%02d-%02d", (gint) g_date_get_year (date), (gint) g_date_get_month (date), diff --git a/gst-libs/gst/tag/id3v2frames.c b/gst-libs/gst/tag/id3v2frames.c index 78aa80e0f9..208c3a7420 100644 --- a/gst-libs/gst/tag/id3v2frames.c +++ b/gst-libs/gst/tag/id3v2frames.c @@ -786,7 +786,7 @@ id3v2_tag_to_taglist (ID3TagsWorking * work, const gchar * tag_name, GValue dest = { 0, }; /* Ensure that any date string is complete */ - if (tag_type == GST_TYPE_DATE) { + if (tag_type == G_TYPE_DATE) { guint year = 1901, month = 1, day = 1; /* Dates can be yyyy-MM-dd, yyyy-MM or yyyy, but we need diff --git a/tests/check/libs/tag.c b/tests/check/libs/tag.c index e11332a1f3..7dfd9c0105 100644 --- a/tests/check/libs/tag.c +++ b/tests/check/libs/tag.c @@ -1233,9 +1233,9 @@ GST_START_TEST (test_xmp_tags_serialization_deserialization) (GST_TAG_CAPTURING_EXPOSURE_COMPENSATION, &value); g_value_unset (&value); - g_value_init (&value, GST_TYPE_DATE); + g_value_init (&value, G_TYPE_DATE); date = g_date_new_dmy (22, 3, 2010); - gst_value_set_date (&value, date); + g_value_set_boxed (&value, date); g_date_free (date); do_simple_xmp_tag_serialization_deserialization (GST_TAG_DATE, &value); g_value_unset (&value);