mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1022667, part 2 - Remove BytesToTime from MediaOmxReader.cpp. r=cpearce
This commit is contained in:
parent
e070189909
commit
49bf9acb82
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user