Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Valentin Platzgummer
qgroundcontrol
Commits
ce1aae53
Commit
ce1aae53
authored
Apr 11, 2020
by
Andrew Voznytsa
Browse files
Workaround crash during app exit (we need more control over objects life time
parent
7c4fce62
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/VideoManager/VideoManager.cc
View file @
ce1aae53
...
...
@@ -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
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment