tools: make gst-inspect print the release date time stamp

This commit is contained in:
Tim-Philipp Müller 2010-07-23 20:46:10 +01:00
parent bf3582b9c4
commit 708bc7dc97

View file

@ -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");