Skip to content

Commit

Permalink
fix(supermediaplayer): restart the audio render on create
Browse files Browse the repository at this point in the history
Signed-off-by: pingkai <pingkai010@gmail.com>
  • Loading branch information
pingkai committed Apr 8, 2020
1 parent e441e32 commit c9be856
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions mediaPlayer/SuperMediaPlayer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1882,6 +1882,9 @@ namespace Cicada {
mAudioTime.deltaTime = 0;
mLastAudioFrameDuration = -1;
setUpAudioRender(mAudioFrameQue.front()->getInfo().audio);
if (mBRendingStart) {
mAudioRender->pause(false);
}
mAudioRender->renderFrame(mAudioFrameQue.front(), 0);
}
}
Expand Down

0 comments on commit c9be856

Please sign in to comment.