mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-04-26 06:54:49 +00:00
docs: Update diplayed plugins filename something stable
This commit is contained in:
parent
6009b82d65
commit
042f6d5def
2 changed files with 7 additions and 3 deletions
|
@ -707,7 +707,7 @@ main (int argc, char *argv[])
|
||||||
|
|
||||||
json = g_string_new ("{");
|
json = g_string_new ("{");
|
||||||
for (i = 2; i < argc; i++) {
|
for (i = 2; i < argc; i++) {
|
||||||
gchar *basename;
|
gchar *basename, **splitext, *filename;
|
||||||
libfile = argv[i];
|
libfile = argv[i];
|
||||||
plugin = gst_plugin_load_file (libfile, &error);
|
plugin = gst_plugin_load_file (libfile, &error);
|
||||||
if (!plugin) {
|
if (!plugin) {
|
||||||
|
@ -719,6 +719,9 @@ main (int argc, char *argv[])
|
||||||
}
|
}
|
||||||
|
|
||||||
basename = g_filename_display_basename (libfile);
|
basename = g_filename_display_basename (libfile);
|
||||||
|
splitext = g_strsplit (basename, ".", 2);
|
||||||
|
filename =
|
||||||
|
g_str_has_prefix (splitext[0], "lib") ? &splitext[0][3] : splitext[0];
|
||||||
g_string_append_printf (json,
|
g_string_append_printf (json,
|
||||||
"%s\"%s\": {"
|
"%s\"%s\": {"
|
||||||
"\"description\":\"%s\","
|
"\"description\":\"%s\","
|
||||||
|
@ -731,11 +734,12 @@ main (int argc, char *argv[])
|
||||||
first ? "" : ",",
|
first ? "" : ",",
|
||||||
gst_plugin_get_name (plugin),
|
gst_plugin_get_name (plugin),
|
||||||
gst_plugin_get_description (plugin),
|
gst_plugin_get_description (plugin),
|
||||||
basename,
|
filename,
|
||||||
gst_plugin_get_source (plugin),
|
gst_plugin_get_source (plugin),
|
||||||
gst_plugin_get_package (plugin),
|
gst_plugin_get_package (plugin),
|
||||||
gst_plugin_get_license (plugin), gst_plugin_get_origin (plugin));
|
gst_plugin_get_license (plugin), gst_plugin_get_origin (plugin));
|
||||||
g_free (basename);
|
g_free (basename);
|
||||||
|
g_strfreev (splitext);
|
||||||
first = FALSE;
|
first = FALSE;
|
||||||
|
|
||||||
features =
|
features =
|
||||||
|
|
|
@ -2941,7 +2941,7 @@
|
||||||
"rank": "none"
|
"rank": "none"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"filename": "libgstcoreelements.so",
|
"filename": "gstcoreelements",
|
||||||
"license": "LGPL",
|
"license": "LGPL",
|
||||||
"package": "GStreamer git",
|
"package": "GStreamer git",
|
||||||
"source": "gstreamer",
|
"source": "gstreamer",
|
||||||
|
|
Loading…
Reference in a new issue