patch-content_media_nsAudioStream_cpp 567 B

1234567891011
  1. --- mozilla-1.9.2.orig/content/media/nsAudioStream.cpp 2010-04-02 18:02:19.000000000 +0200
  2. +++ mozilla-1.9.2/content/media/nsAudioStream.cpp 2010-06-11 21:28:33.522214080 +0200
  3. @@ -246,7 +246,7 @@ float nsAudioStream::GetPosition()
  4. #if defined(XP_WIN)
  5. positionType = SA_POSITION_WRITE_HARDWARE;
  6. #endif
  7. - PRInt64 position = 0;
  8. + int64_t position = 0;
  9. if (sa_stream_get_position(static_cast<sa_stream_t*>(mAudioHandle),
  10. positionType, &position) == SA_SUCCESS) {
  11. return (position / float(mRate) / mChannels / sizeof(short));