mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-18 07:47:17 +00:00
GST_TYPE_DATE -> G_TYPE_DATE
This commit is contained in:
parent
68785cc2e7
commit
e96aaec6bb
4 changed files with 8 additions and 8 deletions
|
@ -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))
|
||||
|
|
|
@ -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),
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue