Browse Source

Removed unnecessary memory allocation

QGC4.4
Alexey 5 years ago
parent
commit
a357909eb3
  1. 2
      src/VideoReceiver/GStreamer.cc

2
src/VideoReceiver/GStreamer.cc

@ -125,7 +125,7 @@ GStreamer::initialize(int argc, char* argv[], int debuglevel) @@ -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<GstDebugLevel>(debuglevel));
gst_debug_remove_log_function(gst_debug_log_default);
gst_debug_add_log_function(qt_gst_log, nullptr, nullptr);

Loading…
Cancel
Save