From 02f69bea56b3ef2e19536dfd750d0f23928d102f Mon Sep 17 00:00:00 2001 From: dogmaphobic Date: Wed, 13 Jan 2016 03:16:25 -0500 Subject: [PATCH] "Fix" for hanging on exit when Video Streaming build is enabled. --- src/VideoStreaming/VideoStreaming.cc | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/VideoStreaming/VideoStreaming.cc b/src/VideoStreaming/VideoStreaming.cc index ab5da872d..939ca0afe 100644 --- a/src/VideoStreaming/VideoStreaming.cc +++ b/src/VideoStreaming/VideoStreaming.cc @@ -114,7 +114,16 @@ void initializeVideoStreaming(int &argc, char* argv[]) void shutdownVideoStreaming() { + /* From: http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gstreamer/html/gstreamer-Gst.html#gst-deinit + * + * "It is normally not needed to call this function in a normal application as the resources will automatically + * be freed when the program terminates. This function is therefore mostly used by testsuites and other memory + * profiling tools." + * + * It's causing a hang on exit. It hangs while deleting some thread. + * #if defined(QGC_GST_STREAMING) gst_deinit(); #endif + */ } -- 2.22.0