--gst-debug-disable

Max Paklin mpaklin at hotmail.com
Fri Nov 4 00:57:02 PDT 2011


Hello,

Is --gst-debug-disable flag supposed to work?
I have a need to completely disable all output from GStreamer libraries
under certain conditions. I thought I'd try --gst-debug-disable, but it
seems to have no effect.

To test I simply copied an invalid .so file to one of directories included
in GST_PLUGIN_PATH. Invalid in this case was simply a .so compiled for a
different platform (PPC), while the test was on FC15 x86 (0.10.35).
Running the following
gst-launch --gst-debug-disable fakesrc ! fakesink

Resulted in this
(gst-plugin-scanner:3022): GStreamer-WARNING **: Failed to load plugin
'./libcommons.so': ./libcommons.so: ELF file data encoding not little-endian

The same happened when I tried all I could think of from my own app.
gst_debug_set_active(FALSE),
gst_debug_remove_log_function(gst_debug_log_default), GST_DEBUG=0,
GST_DEBUG_FILE=/dev/null did not help.

Can anyone recommend the right approach to ensure that no output is
generated to either stdout or stderr no matter what the error is?
Thanks,
-- Max.




More information about the gstreamer-devel mailing list