diff --git a/src/VideoReceiver/GStreamer.cc b/src/VideoReceiver/GStreamer.cc index 8198b20b1f7f4985bc68f4d58ec39ce6c267827d..25f65fc1af216d1ac0ec2e1c4654234d13ba177d 100644 --- a/src/VideoReceiver/GStreamer.cc +++ b/src/VideoReceiver/GStreamer.cc @@ -125,7 +125,7 @@ GStreamer::initialize(int argc, char* argv[], int debuglevel) #endif //-- If gstreamer debugging is not configured via environment then use internal QT logging - if (qgetenv("GST_DEBUG").isEmpty()) { + if (qEnvironmentVariableIsEmpty("GST_DEBUG")) { gst_debug_set_default_threshold(static_cast(debuglevel)); gst_debug_remove_log_function(gst_debug_log_default); gst_debug_add_log_function(qt_gst_log, nullptr, nullptr);