Merge change Ib904c2a4 into eclair-mr2
* changes: Remove old hack A/V sync hack that is no longer needed.
This commit is contained in:
@ -202,7 +202,6 @@ extmap FILE_EXTS [] = {
|
||||
};
|
||||
|
||||
// TODO: Find real cause of Audio/Video delay in PV framework and remove this workaround
|
||||
/* static */ const uint32_t MediaPlayerService::AudioOutput::kAudioVideoDelayMs = 0;
|
||||
/* static */ int MediaPlayerService::AudioOutput::mMinBufferCount = 4;
|
||||
/* static */ bool MediaPlayerService::AudioOutput::mIsOnEmulator = false;
|
||||
|
||||
@ -1485,7 +1484,7 @@ status_t MediaPlayerService::AudioOutput::open(
|
||||
LOGV("setVolume");
|
||||
t->setVolume(mLeftVolume, mRightVolume);
|
||||
mMsecsPerFrame = 1.e3 / (float) sampleRate;
|
||||
mLatency = t->latency() + kAudioVideoDelayMs;
|
||||
mLatency = t->latency();
|
||||
mTrack = t;
|
||||
return NO_ERROR;
|
||||
}
|
||||
|
@ -108,8 +108,6 @@ class MediaPlayerService : public BnMediaPlayerService
|
||||
float mMsecsPerFrame;
|
||||
uint32_t mLatency;
|
||||
|
||||
// TODO: Find real cause of Audio/Video delay in PV framework and remove this workaround
|
||||
static const uint32_t kAudioVideoDelayMs;
|
||||
static bool mIsOnEmulator;
|
||||
static int mMinBufferCount; // 12 for emulator; otherwise 4
|
||||
|
||||
|
Reference in New Issue
Block a user