From 708bc7dc97ba4c2c8659820fc2bdf0b1e6bab767 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tim-Philipp=20M=C3=BCller?= Date: Fri, 23 Jul 2010 20:46:10 +0100 Subject: [PATCH] tools: make gst-inspect print the release date time stamp --- tools/gst-inspect.c | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/tools/gst-inspect.c b/tools/gst-inspect.c index 2007aad489..43d809ce10 100644 --- a/tools/gst-inspect.c +++ b/tools/gst-inspect.c @@ -1162,6 +1162,25 @@ print_plugin_info (GstPlugin * plugin) n_print (" Version:\t\t%s\n", plugin->desc.version); n_print (" License:\t\t%s\n", plugin->desc.license); n_print (" Source module:\t%s\n", plugin->desc.source); + if (plugin->desc.release_datetime != NULL) { + const gchar *tz = "(UTC)"; + gchar *str, *sep; + + /* may be: YYYY-MM-DD or YYYY-MM-DDTHH:MMZ */ + /* YYYY-MM-DDTHH:MMZ => YYYY-MM-DD HH:MM (UTC) */ + str = g_strdup (plugin->desc.release_datetime); + sep = strstr (str, "T"); + if (sep != NULL) { + *sep = ' '; + sep = strstr (sep + 1, "Z"); + if (sep != NULL) + *sep = ' '; + } else { + tz = ""; + } + n_print (" Source release date:\t%s%s\n", str, tz); + g_free (str); + } n_print (" Binary package:\t%s\n", plugin->desc.package); n_print (" Origin URL:\t\t%s\n", plugin->desc.origin); n_print ("\n");