Commit 07820407 authored by Gus Grubba's avatar Gus Grubba

Revert "videonode: Do not finish if material is different"

This reverts commit 3a18878b.
parent bf29df41
......@@ -52,18 +52,14 @@ void VideoNode::setMaterialTypeSolidBlack()
void VideoNode::setCurrentFrame(GstBuffer* buffer)
{
if (m_materialType != MaterialTypeVideo) {
return;
}
Q_ASSERT (m_materialType == MaterialTypeVideo);
static_cast<VideoMaterial*>(material())->setCurrentFrame(buffer);
markDirty(DirtyMaterial);
}
void VideoNode::updateColors(int brightness, int contrast, int hue, int saturation)
{
if (m_materialType != MaterialTypeVideo) {
return;
}
Q_ASSERT (m_materialType == MaterialTypeVideo);
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