Unverified Commit 53e4da0a authored by Gus Grubba's avatar Gus Grubba Committed by GitHub

Merge pull request #6365 from bluerobotics/patrickelectric/fix#164

Perfect. Thanks!
parents c29c83a9 3a18878b
......@@ -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);
}
......
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