projects
/
platform
/
upstream
/
gstreamer.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
04142a9
)
tools: fix printing of partial dates in gst-launch
author
Tim-Philipp Müller
<tim.muller@collabora.co.uk>
Thu, 2 Aug 2012 10:33:41 +0000
(11:33 +0100)
committer
Tim-Philipp Müller
<tim.muller@collabora.co.uk>
Thu, 2 Aug 2012 10:33:41 +0000
(11:33 +0100)
tools/gst-launch.c
patch
|
blob
|
history
diff --git
a/tools/gst-launch.c
b/tools/gst-launch.c
index 2c1db34cf8bfb6a7fa68fdc0ad06830465ceef59..1cce4d176282c9cac02525e857962b67e6e69e7c 100644
(file)
--- 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];