diff options
author | Tim-Philipp Müller <tim@centricular.com> | 2014-07-04 19:40:28 +0100 |
---|---|---|
committer | Tim-Philipp Müller <tim@centricular.com> | 2014-07-04 19:40:28 +0100 |
commit | 721a1c7553a6dc84f88f27e5ea70585026fa20d5 (patch) | |
tree | 3ebf1b0ddd30fb3dcc6b2a9976ed202555bf2a9d | |
parent | 125ae3acb1bc0f45e1e4763ae9ac214013a66765 (diff) |
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.
-rw-r--r-- | tools/gst-inspect.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tools/gst-inspect.c b/tools/gst-inspect.c index 992f4ffc5..f97eb2a4b 100644 --- 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 |