equal
deleted
inserted
replaced
1 Casts the value to an int since abs() only takes an integer argument. |
|
2 May want to change this so that we use labs() instead of abs(). |
|
3 |
|
4 --- comm-esr31/mozilla/content/media/MediaDecoderStateMachine.cpp.orig 2015-06-04 17:42:52.361303668 -0700 |
|
5 +++ comm-esr31/mozilla/content/media/MediaDecoderStateMachine.cpp 2015-06-04 17:42:52.366561967 -0700 |
|
6 @@ -1227,7 +1227,7 @@ |
|
7 AssertCurrentThreadInMonitor(); |
|
8 int64_t duration = GetDuration(); |
|
9 if (aDuration != duration && |
|
10 - abs(aDuration - duration) > ESTIMATED_DURATION_FUZZ_FACTOR_USECS) { |
|
11 + abs((int)(aDuration - duration)) > ESTIMATED_DURATION_FUZZ_FACTOR_USECS) { |
|
12 SetDuration(aDuration); |
|
13 nsCOMPtr<nsIRunnable> event = |
|
14 NS_NewRunnableMethod(mDecoder, &MediaDecoder::DurationChanged); |
|