Bug 1022667, part 2 - Remove BytesToTime from MediaOmxReader.cpp. r=cpearce

This commit is contained in:
Jonathan Watt 2014-06-10 16:42:21 +01:00
parent e070189909
commit 49bf9acb82

View File

@ -398,13 +398,6 @@ nsresult MediaOmxReader::Seek(int64_t aTarget, int64_t aStartTime, int64_t aEndT
return NS_OK; return NS_OK;
} }
static uint64_t BytesToTime(int64_t offset, uint64_t length, uint64_t durationUs) {
double perc = double(offset) / double(length);
if (perc > 1.0)
perc = 1.0;
return uint64_t(double(durationUs) * perc);
}
void MediaOmxReader::SetIdle() { void MediaOmxReader::SetIdle() {
if (!mOmxDecoder.get()) { if (!mOmxDecoder.get()) {
return; return;