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
ab2c2726
Commit
ab2c2726
authored
Apr 17, 2018
by
Patrick J.P
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
videonode: Do not finish if material is different
Signed-off-by:
Patrick J.P
<
patrickelectric@gmail.com
>
parent
83030ca6
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
2 deletions
+6
-2
videonode.cpp
src/VideoStreaming/gstqtvideosink/painters/videonode.cpp
+6
-2
No files found.
src/VideoStreaming/gstqtvideosink/painters/videonode.cpp
View file @
ab2c2726
...
...
@@ -52,14 +52,18 @@ void VideoNode::setMaterialTypeSolidBlack()
void
VideoNode
::
setCurrentFrame
(
GstBuffer
*
buffer
)
{
Q_ASSERT
(
m_materialType
==
MaterialTypeVideo
);
if
(
m_materialType
!=
MaterialTypeVideo
)
{
return
;
}
static_cast
<
VideoMaterial
*>
(
material
())
->
setCurrentFrame
(
buffer
);
markDirty
(
DirtyMaterial
);
}
void
VideoNode
::
updateColors
(
int
brightness
,
int
contrast
,
int
hue
,
int
saturation
)
{
Q_ASSERT
(
m_materialType
==
MaterialTypeVideo
);
if
(
m_materialType
!=
MaterialTypeVideo
)
{
return
;
}
static_cast
<
VideoMaterial
*>
(
material
())
->
updateColors
(
brightness
,
contrast
,
hue
,
saturation
);
markDirty
(
DirtyMaterial
);
}
...
...
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