Commit ce6abcc9 authored by IOhannes m zmölnig's avatar IOhannes m zmölnig

filmDS: properly set newimage flag

parent fbb817bf
......@@ -1181,8 +1181,7 @@ pixBlock*filmDS::getFrame(void)
}
m_image.newfilm=false;
m_image.newimage=false;
m_image.newimage=player->isFrameNew();
int w=player->getWidth();
int h=player->getHeight();
if(w!=m_image.image.xsize || h!=m_image.image.ysize) {
......@@ -1196,7 +1195,6 @@ pixBlock*filmDS::getFrame(void)
}
bool res=player->getPixels(m_image.image);
if(res) {
m_image.newimage=true;
return &m_image;
}
return 0;
......
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