Commit ce1aae53 authored by Andrew Voznytsa's avatar Andrew Voznytsa

Workaround crash during app exit (we need more control over objects life time

parent 7c4fce62
......@@ -71,7 +71,11 @@ VideoManager::~VideoManager()
}
#if defined(QGC_GST_STREAMING)
if (_videoSink[i] != nullptr) {
qgcApp()->toolbox()->corePlugin()->releaseVideoSink(_videoSink[i]);
// FIXME: AV: we need some interaface for video sink with .release() call
// Currently VideoManager is destroyed after corePlugin() and we are crashing on app exit
// calling qgcApp()->toolbox()->corePlugin()->releaseVideoSink(_videoSink[i]);
// As for now let's call GStreamer::releaseVideoSink() directly
GStreamer::releaseVideoSink(_videoSink[i]);
_videoSink[i] = nullptr;
}
#endif
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment