Skip to content

Commit

Permalink
Revert "refactor(player): use getAudioPlayTimeStamp to check delay"
Browse files Browse the repository at this point in the history
This reverts commit 56571ba.
  • Loading branch information
skufly committed May 18, 2020
1 parent d57ce88 commit d1a831c
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions mediaPlayer/SuperMediaPlayer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1429,13 +1429,7 @@ namespace Cicada {
int64_t lastAudio = mBufferController.GetPacketLastPTS(BUFFER_TYPE_AUDIO);

if ((lastAudio != INT64_MIN) && (mPlayedAudioPts != INT64_MIN)) {
int64_t playTime = getAudioPlayTimeStamp();

if (INT64_MIN == playTime) {
playTime = mPlayedAudioPts;
}

int64_t delayTime = lastAudio - playTime;
int64_t delayTime = lastAudio - mPlayedAudioPts;
static int64_t lastT = af_gettime_ms();

if (af_gettime_ms() - lastT > 1000) {
Expand Down

0 comments on commit d1a831c

Please sign in to comment.