tools: suppress GLib warnings when gst-inspecting deprecated properties

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.
This commit is contained in:
Tim-Philipp Müller 2014-07-04 19:40:28 +01:00
parent 125ae3acb1
commit 721a1c7553

View file

@ -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