summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorTim-Philipp Müller <tim.muller@collabora.co.uk>2012-08-02 11:33:41 +0100
committerTim-Philipp Müller <tim.muller@collabora.co.uk>2012-08-02 11:33:41 +0100
commitf938cf92574ebe308ec59356fbf0d7373ac74e83 (patch)
tree249f9877419686e6247a6ab2fe43af085ff37608 /tools
parent04142a965352a8a554e1475df1cc654f605a4052 (diff)
tools: fix printing of partial dates in gst-launch
Diffstat (limited to 'tools')
-rw-r--r--tools/gst-launch.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/tools/gst-launch.c b/tools/gst-launch.c
index 2c1db34cf..1cce4d176 100644
--- a/tools/gst-launch.c
+++ b/tools/gst-launch.c
@@ -412,9 +412,8 @@ print_tag (const GstTagList * list, const gchar * tag, gpointer unused)
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));
+ if (!gst_date_time_has_time (dt)) {
+ str = gst_date_time_to_iso8601_string (dt);
} else {
gdouble tz_offset = gst_date_time_get_time_zone_offset (dt);
gchar tz_str[32];