Commit d681af89 authored by Tim-Philipp Müller's avatar Tim-Philipp Müller

GST_TYPE_DATE -> G_TYPE_DATE

parent 8580dd86
......@@ -288,15 +288,14 @@ ape_demux_parse_tags (const guint8 * data, gint size)
break;
}
default:{
if (gst_tag_type == GST_TYPE_DATE) {
if (gst_tag_type == G_TYPE_DATE) {
gint v_int;
if (sscanf (val, "%d", &v_int) == 1) {
GDate *date = g_date_new_dmy (1, 1, v_int);
g_value_init (&v, GST_TYPE_DATE);
gst_value_set_date (&v, date);
g_date_free (date);
g_value_init (&v, G_TYPE_DATE);
g_value_take_boxed (&v, date);
}
} else {
GST_WARNING ("Unhandled tag type '%s' for tag '%s'",
......
......@@ -618,7 +618,7 @@ gst_qt_mux_add_mp4_date (GstQTMux * qtmux, const GstTagList * list,
GDateDay day;
gchar *str;
g_return_if_fail (gst_tag_get_type (tag) == GST_TYPE_DATE);
g_return_if_fail (gst_tag_get_type (tag) == G_TYPE_DATE);
if (!gst_tag_list_get_date (list, tag, &date) || !date)
return;
......@@ -731,7 +731,7 @@ gst_qt_mux_add_3gp_date (GstQTMux * qtmux, const GstTagList * list,
GDate *date = NULL;
GDateYear year;
g_return_if_fail (gst_tag_get_type (tag) == GST_TYPE_DATE);
g_return_if_fail (gst_tag_get_type (tag) == G_TYPE_DATE);
if (!gst_tag_list_get_date (list, tag, &date) || !date)
return;
......
......@@ -652,7 +652,7 @@ gst_matroska_read_common_parse_attached_file (GstMatroskaReadCommon * common,
tagsample, NULL);
/* the list adds it own ref */
gst_buffer_unref (tagsample);
gst_sample_unref (tagsample);
}
g_free (filename);
......@@ -1449,7 +1449,7 @@ gst_matroska_read_common_parse_metadata_id_simple_tag (GstMatroskaReadCommon *
GType dest_type = gst_tag_get_type (tagname_gst);
/* Ensure that any date string is complete */
if (dest_type == GST_TYPE_DATE) {
if (dest_type == G_TYPE_DATE) {
guint year = 1901, month = 1, day = 1;
/* Dates can be yyyy-MM-dd, yyyy-MM or yyyy, but we need
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment