From c16ababca8eb88beb620df4375474fc0d2e4b28f Mon Sep 17 00:00:00 2001 From: Andrew Voznytsa Date: Mon, 3 Feb 2020 17:57:15 +0200 Subject: [PATCH] Allow developers (or advanced users) to override UI settings - quite useful if you set your debug settings in QtCreator and do not depends on QGC settings state (they are reset to default sometimes, for example) --- src/VideoStreaming/VideoStreaming.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/VideoStreaming/VideoStreaming.cc b/src/VideoStreaming/VideoStreaming.cc index 93704fef5..7a9e45550 100644 --- a/src/VideoStreaming/VideoStreaming.cc +++ b/src/VideoStreaming/VideoStreaming.cc @@ -132,7 +132,7 @@ void initializeVideoStreaming(int &argc, char* argv[], char* logpath, char* debu gst_ios_init(); #else //-- Generic initialization - if (logpath) { + if (qgetenv("GST_DEBUG").isEmpty() && logpath) { QString gstDebugFile = QString("%1/%2").arg(logpath).arg("gstreamer-log.txt"); qDebug() << "GStreamer debug output:" << gstDebugFile; if (debuglevel) { -- 2.22.0