Advertisement
Guest User

patch-audio_splicer

a guest
Feb 25th, 2013
118
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.87 KB | None | 0 0
  1. --- audio_splicer.cc.orig 2013-02-25 14:38:27.000000000 +0100
  2. +++ audio_splicer.cc 2013-02-25 14:31:52.000000000 +0100
  3. @@ -60,7 +60,7 @@
  4. base::TimeDelta expected_timestamp = output_timestamp_helper_.GetTimestamp();
  5. base::TimeDelta delta = timestamp - expected_timestamp;
  6.  
  7. - if (std::abs(delta.InMilliseconds()) > kMaxTimeDeltaInMilliseconds) {
  8. + if (std::labs(delta.InMilliseconds()) > kMaxTimeDeltaInMilliseconds) {
  9. DVLOG(1) << "Timestamp delta too large: " << delta.InMicroseconds() << "us";
  10. return false;
  11. }
  12. @@ -69,7 +69,7 @@
  13. if (delta != base::TimeDelta())
  14. bytes_to_fill = output_timestamp_helper_.GetBytesToTarget(timestamp);
  15.  
  16. - if (bytes_to_fill == 0 || std::abs(bytes_to_fill) < min_gap_size_) {
  17. + if (bytes_to_fill == 0 || std::labs(bytes_to_fill) < min_gap_size_) {
  18. AddOutputBuffer(input);
  19. return true;
  20. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement