Lines 39-44
Link Here
|
39 |
|
39 |
|
40 |
#include <algorithm> |
40 |
#include <algorithm> |
41 |
|
41 |
|
|
|
42 |
#include "mozilla/MathAlgorithms.h" |
43 |
|
42 |
namespace mozilla { |
44 |
namespace mozilla { |
43 |
|
45 |
|
44 |
using namespace mozilla::layers; |
46 |
using namespace mozilla::layers; |
Lines 1312-1318
Link Here
|
1312 |
AssertCurrentThreadInMonitor(); |
1314 |
AssertCurrentThreadInMonitor(); |
1313 |
int64_t duration = GetDuration(); |
1315 |
int64_t duration = GetDuration(); |
1314 |
if (aDuration != duration && |
1316 |
if (aDuration != duration && |
1315 |
std::abs(aDuration - duration) > ESTIMATED_DURATION_FUZZ_FACTOR_USECS) { |
1317 |
mozilla::Abs(aDuration - duration) > ESTIMATED_DURATION_FUZZ_FACTOR_USECS) { |
1316 |
SetDuration(aDuration); |
1318 |
SetDuration(aDuration); |
1317 |
nsCOMPtr<nsIRunnable> event = |
1319 |
nsCOMPtr<nsIRunnable> event = |
1318 |
NS_NewRunnableMethod(mDecoder, &MediaDecoder::DurationChanged); |
1320 |
NS_NewRunnableMethod(mDecoder, &MediaDecoder::DurationChanged); |