openbsd-ports/www/firefox36/patches/patch-content_media_nsAudioStream_cpp
naddy 1090f160fd Import Firefox 3.6.2. Work in progress, not linked to the build.
Builds and runs on amd64 and i386, needs work elsewhere.
From martynas@ for 3.6; slightly updated by yours truly.
2010-03-29 20:44:08 +00:00

13 lines
607 B
Plaintext

$OpenBSD: patch-content_media_nsAudioStream_cpp,v 1.1.1.1 2010/03/29 20:44:09 naddy Exp $
--- content/media/nsAudioStream.cpp.orig Thu Jan 21 05:29:59 2010
+++ content/media/nsAudioStream.cpp Thu Jan 21 13:49:36 2010
@@ -246,7 +246,7 @@ float nsAudioStream::GetPosition()
#if defined(XP_WIN)
positionType = SA_POSITION_WRITE_HARDWARE;
#endif
- PRInt64 position = 0;
+ int64_t position = 0;
if (sa_stream_get_position(static_cast<sa_stream_t*>(mAudioHandle),
positionType, &position) == SA_SUCCESS) {
return (position / float(mRate) / mChannels / sizeof(short));