mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 12:11:13 +00:00
tools: make gst-inspect print the release date time stamp
This commit is contained in:
parent
bf3582b9c4
commit
708bc7dc97
1 changed files with 19 additions and 0 deletions
|
@ -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");
|
||||
|
|
Loading…
Reference in a new issue