Skip to content

Commit

Permalink
fix(render): update video background color if changed when pause
Browse files Browse the repository at this point in the history
  • Loading branch information
I-m-SuperMan committed Jun 5, 2020
1 parent d011609 commit 0becd1e
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion framework/render/video/glRender/CV420PProgramContext.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ int CV420PProgramContext::updateFrame(std::unique_ptr<IAFFrame> &frame) {
}
}

if (frame == nullptr && !mProjectionChanged && !mRegionChanged && !mCoordsChanged) {
if (frame == nullptr && !mProjectionChanged && !mRegionChanged && !mCoordsChanged && !mBackgroundColorChanged) {
//frame is null and nothing changed , don`t need redraw. such as paused.
return -1;
}
Expand Down
2 changes: 1 addition & 1 deletion framework/render/video/glRender/OESProgramContext.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -332,7 +332,7 @@ int OESProgramContext::updateFrame(std::unique_ptr<IAFFrame> &frame) {
}
}

if (frame == nullptr && !mRegionChanged && !mCoordsChanged) {
if (frame == nullptr && !mRegionChanged && !mCoordsChanged && !mBackgroundColorChanged) {
//frame is null and nothing changed , don`t need redraw. such as paused.
// AF_LOGW("0918, nothing changed");
return -1;
Expand Down
2 changes: 1 addition & 1 deletion framework/render/video/glRender/YUVProgramContext.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ int YUVProgramContext::updateFrame(std::unique_ptr<IAFFrame> &frame) {
}
}

if(frame == nullptr && !mProjectionChanged && !mRegionChanged && !mCoordsChanged){
if(frame == nullptr && !mProjectionChanged && !mRegionChanged && !mCoordsChanged && !mBackgroundColorChanged){
//frame is null and nothing changed , don`t need redraw. such as paused.
return -1;
}
Expand Down

0 comments on commit 0becd1e

Please sign in to comment.