Skip to content

Commit

Permalink
fix(player): don't wait for video frame if in background
Browse files Browse the repository at this point in the history
  • Loading branch information
skufly authored and pingkai committed Feb 28, 2020
1 parent 747646e commit 4bda5ba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mediaPlayer/SuperMediaPlayer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1115,7 +1115,7 @@ namespace Cicada {
doDeCode();

if (!mBRendingStart && mPlayStatus == PLAYER_PLAYING && !mBufferingFlag) {
if ((!HAVE_VIDEO || !mVideoFrameQue.empty())
if ((!HAVE_VIDEO || !mVideoFrameQue.empty() || (APP_BACKGROUND == mAppStatus))
&& (!HAVE_AUDIO || !mAudioFrameQue.empty())) {
startRendering(true);
}
Expand Down

0 comments on commit 4bda5ba

Please sign in to comment.