From: Tim-Philipp Müller Date: Thu, 12 Jan 2012 23:35:44 +0000 (+0000) Subject: GST_TYPE_DATE -> G_TYPE_DATE X-Git-Tag: 1.19.3~511^2~6939 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=e96aaec6bbfbc54b09995cdbefd6168d0bef95a1;p=platform%2Fupstream%2Fgstreamer.git GST_TYPE_DATE -> G_TYPE_DATE --- diff --git a/gst-libs/gst/tag/gstvorbistag.c b/gst-libs/gst/tag/gstvorbistag.c index f4df412..63ea2f6 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 9cd0704..0c363c0 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 78aa80e..208c3a7 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 e11332a..7dfd9c0 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);