From 776648584242322d34b6639fd09656efb91f14be Mon Sep 17 00:00:00 2001 From: Ed Morley Date: Mon, 16 Sep 2013 08:43:56 +0100 Subject: [PATCH] Backed out changeset 9cc6dd50c93a (bug 904617) --- content/media/AudioStream.cpp | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/content/media/AudioStream.cpp b/content/media/AudioStream.cpp index 67a16d8a97f8..3a3c6e735493 100644 --- a/content/media/AudioStream.cpp +++ b/content/media/AudioStream.cpp @@ -322,7 +322,6 @@ class BufferedAudioStream : public AudioStream int64_t GetPosition(); int64_t GetPositionInFrames(); int64_t GetPositionInFramesInternal(); - int64_t GetLatencyInFrames(); bool IsPaused(); // This method acquires the monitor and forward the call to the base // class, to prevent a race on |mTimeStretcher|, in @@ -776,17 +775,6 @@ BufferedAudioStream::GetPositionInFramesUnlocked() return std::min(adjustedPosition, INT64_MAX); } -int64_t -BufferedAudioStream::GetLatencyInFrames() -{ - uint32_t latency; - if(cubeb_stream_get_latency(mCubebStream, &latency)) { - NS_WARNING("Could not get cubeb latency."); - return 0; - } - return static_cast(latency); -} - bool BufferedAudioStream::IsPaused() {