GST_TYPE_DATE -> G_TYPE_DATE

This commit is contained in:
Tim-Philipp Müller 2012-01-12 23:35:44 +00:00
parent 68785cc2e7
commit e96aaec6bb
4 changed files with 8 additions and 8 deletions

View file

@ -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))

View file

@ -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),

View file

@ -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

View file

@ -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);