mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-03-30 12:49:40 +00:00
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:
parent
125ae3acb1
commit
721a1c7553
1 changed files with 3 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue