components/desktop/thunderbird/patches/firefox28-96-MediaDecoder.patch
changeset 5527 611b2d6efdfe
parent 5526 570ac9aab8b2
child 5528 f2f5af510081
equal deleted inserted replaced
5526:570ac9aab8b2 5527:611b2d6efdfe
     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);