Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Q
qgroundcontrol
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Valentin Platzgummer
qgroundcontrol
Commits
17090c37
Commit
17090c37
authored
Apr 13, 2020
by
Andrew Voznytsa
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix bcmdec crash
parent
58b8db24
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
0 deletions
+19
-0
GStreamer.cc
src/VideoReceiver/GStreamer.cc
+19
-0
No files found.
src/VideoReceiver/GStreamer.cc
View file @
17090c37
...
...
@@ -105,6 +105,23 @@ static void qgcputenv(const QString& key, const QString& root, const QString& pa
}
#endif
static
void
blacklist
()
{
GstRegistry
*
reg
;
if
((
reg
=
gst_registry_get
())
==
nullptr
)
{
return
;
}
GstPluginFeature
*
plugin
;
if
((
plugin
=
gst_registry_lookup_feature
(
reg
,
"bcmdec"
))
!=
nullptr
)
{
qCCritical
(
GStreamerLog
)
<<
"Disable bcmdec"
;
gst_plugin_feature_set_rank
(
plugin
,
GST_RANK_NONE
);
}
}
void
GStreamer
::
initialize
(
int
argc
,
char
*
argv
[],
int
debuglevel
)
{
...
...
@@ -173,6 +190,8 @@ GStreamer::initialize(int argc, char* argv[], int debuglevel)
gst_ios_post_init
();
#endif
blacklist
();
/* the plugin must be loaded before loading the qml file to register the
* GstGLVideoItem qml item
* FIXME Add a QQmlExtensionPlugin into qmlglsink to register GstGLVideoItem
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a 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