Browse Source

Merge pull request #8614 from alexeylysenko/remove_unnecessary_allocations

Removed unnecessary memory allocation
QGC4.4
Don Gagne 5 years ago committed by GitHub
parent
commit
5872f6b07c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      src/VideoReceiver/GStreamer.cc

2
src/VideoReceiver/GStreamer.cc

@ -125,7 +125,7 @@ GStreamer::initialize(int argc, char* argv[], int debuglevel)
#endif #endif
//-- If gstreamer debugging is not configured via environment then use internal QT logging //-- 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_set_default_threshold(static_cast<GstDebugLevel>(debuglevel));
gst_debug_remove_log_function(gst_debug_log_default); gst_debug_remove_log_function(gst_debug_log_default);
gst_debug_add_log_function(qt_gst_log, nullptr, nullptr); gst_debug_add_log_function(qt_gst_log, nullptr, nullptr);

Loading…
Cancel
Save