summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastian Dröge <sebastian.droege@collabora.co.uk>2012-09-27 12:33:17 +0200
committerSebastian Dröge <sebastian.droege@collabora.co.uk>2012-09-27 12:33:17 +0200
commitecd1f1805869b42a090d87f3e7dc51dea011176a (patch)
treee6c2840d21d6b05453f384fe6fe978727813a47a
parentb710ee4f9e2b16b25f0c9bdea209cd5dbf32a375 (diff)
insanitygstpipelinetest: Fix printing of datetime tags
-rw-r--r--lib/insanity-gst/insanitygstpipelinetest.c21
1 files changed, 1 insertions, 20 deletions
diff --git a/lib/insanity-gst/insanitygstpipelinetest.c b/lib/insanity-gst/insanitygstpipelinetest.c
index ff3083e..791fbd6 100644
--- a/lib/insanity-gst/insanitygstpipelinetest.c
+++ b/lib/insanity-gst/insanitygstpipelinetest.c
@@ -244,26 +244,7 @@ send_tag (const GstTagList * list, const gchar * tag, gpointer data)
GstDateTime *dt = NULL;
gst_tag_list_get_date_time_index (list, tag, i, &dt);
- if (gst_date_time_get_hour (dt) < 0) {
- str = g_strdup_printf ("%02u-%02u-%04u", gst_date_time_get_day (dt),
- gst_date_time_get_month (dt), gst_date_time_get_year (dt));
- } else {
- gdouble tz_offset = gst_date_time_get_time_zone_offset (dt);
- gchar tz_str[32];
-
- if (tz_offset != 0.0) {
- g_snprintf (tz_str, sizeof (tz_str), "(UTC %s%gh)",
- (tz_offset > 0.0) ? "+" : "", tz_offset);
- } else {
- g_snprintf (tz_str, sizeof (tz_str), "(UTC)");
- }
-
- str = g_strdup_printf ("%04u-%02u-%02u %02u:%02u:%02u %s",
- gst_date_time_get_year (dt), gst_date_time_get_month (dt),
- gst_date_time_get_day (dt), gst_date_time_get_hour (dt),
- gst_date_time_get_minute (dt), gst_date_time_get_second (dt),
- tz_str);
- }
+ str = gst_date_time_to_iso8601_string (dt);
gst_date_time_unref (dt);
} else {
str =