Fix blank screen on movit pause

CCBUG: 371926
parent d56831ea
......@@ -395,6 +395,7 @@ void GLWidget::releaseAnalyse()
void GLWidget::paintGL()
{
if (m_glslManager && !m_texture[0]) return;
QOpenGLFunctions* f = openglContext()->functions();
int width = this->width() * devicePixelRatio();
int height = this->height() * devicePixelRatio();
......@@ -420,7 +421,6 @@ void GLWidget::paintGL()
m_mutex.unlock();
}
#endif
if (!m_texture[0]) return;
// Bind textures.
for (int i = 0; i < 3; ++i) {
......
......@@ -948,7 +948,6 @@ bool Render::checkFrameNumber(int pos)
} else {
m_isRefreshing = false;
if (m_mltProducer->get_speed() == 0) {
m_mltConsumer->stop();
m_mltConsumer->purge();
} else if (m_isZoneMode) {
if (pos >= m_mltProducer->get_int("out") - 1) {
......
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