summaryrefslogtreecommitdiffstats
path: root/media/libmediaplayerservice
diff options
context:
space:
mode:
authorDave Sparks <davidsparks@android.com>2009-12-03 10:13:32 -0800
committerDave Sparks <davidsparks@android.com>2009-12-03 10:13:32 -0800
commitb904c2a452c43c0de591159f159d3b0e521e466e (patch)
treeff28ae7ee331ab4215a0d169503e33acf5f51042 /media/libmediaplayerservice
parentb70da2bbc594b093472d5333386d79f677fd9e01 (diff)
downloadframeworks_base-b904c2a452c43c0de591159f159d3b0e521e466e.zip
frameworks_base-b904c2a452c43c0de591159f159d3b0e521e466e.tar.gz
frameworks_base-b904c2a452c43c0de591159f159d3b0e521e466e.tar.bz2
Remove old hack A/V sync hack that is no longer needed.
Diffstat (limited to 'media/libmediaplayerservice')
-rw-r--r--media/libmediaplayerservice/MediaPlayerService.cpp3
-rw-r--r--media/libmediaplayerservice/MediaPlayerService.h2
2 files changed, 1 insertions, 4 deletions
diff --git a/media/libmediaplayerservice/MediaPlayerService.cpp b/media/libmediaplayerservice/MediaPlayerService.cpp
index b81684b..a4e3601 100644
--- a/media/libmediaplayerservice/MediaPlayerService.cpp
+++ b/media/libmediaplayerservice/MediaPlayerService.cpp
@@ -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;
}
diff --git a/media/libmediaplayerservice/MediaPlayerService.h b/media/libmediaplayerservice/MediaPlayerService.h
index b00f5b7..1c90cf9 100644
--- a/media/libmediaplayerservice/MediaPlayerService.h
+++ b/media/libmediaplayerservice/MediaPlayerService.h
@@ -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