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:
125ae3a
)
tools: suppress GLib warnings when gst-inspecting deprecated properties
author
Tim-Philipp Müller
<tim@centricular.com>
Fri, 4 Jul 2014 18:40:28 +0000
(19:40 +0100)
committer
Tim-Philipp Müller
<tim@centricular.com>
Fri, 4 Jul 2014 18:40:28 +0000
(19:40 +0100)
GLib in git will spew a g_warning() when a property marked as
deprecated via param spec flags is accessed. Suppress this by
setting the appropriate environment variable.
tools/gst-inspect.c
patch
|
blob
|
history
diff --git
a/tools/gst-inspect.c
b/tools/gst-inspect.c
index 992f4ffc5fef35e71e3f617ddf768ccc29ba3c42..f97eb2a4b779dec35abc768bc997b1cff3685490 100644
(file)
--- a/
tools/gst-inspect.c
+++ b/
tools/gst-inspect.c
@@
-1484,6
+1484,9
@@
main (int argc, char *argv[])
textdomain (GETTEXT_PACKAGE);
#endif
+ /* avoid glib warnings when inspecting deprecated properties */
+ g_setenv ("G_ENABLE_DIAGNOSTIC", "0", FALSE);
+
g_set_prgname ("gst-inspect-" GST_API_VERSION);
#ifndef GST_DISABLE_OPTION_PARSING