Skip to content

Commit

Permalink
fix(GLRender): drop a frame when view is null
Browse files Browse the repository at this point in the history
  • Loading branch information
I-m-SuperMan authored and pingkai committed Sep 21, 2020
1 parent e18f0de commit 6b3125a
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion framework/render/video/glRender/GLRender.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -313,7 +313,12 @@ bool GLRender::renderActually()
mWindowHeight = mContext->GetHeight();

if (mGLSurface == nullptr) {
// AF_LOGE("0918 renderActurally return mGLSurface = null..");

std::unique_lock<std::mutex> locker(mFrameMutex);
if (!mInputQueue.empty()) {
dropFrame();
}

return false;
}

Expand Down

0 comments on commit 6b3125a

Please sign in to comment.