oggz_off_t is off_t

position is int64_t
This commit is contained in:
martynas 2009-06-21 13:18:59 +00:00
parent 0277f1cc84
commit 1165083ba7
2 changed files with 24 additions and 0 deletions

View File

@ -0,0 +1,12 @@
$OpenBSD: patch-content_media_video_src_nsAudioStream_cpp,v 1.1 2009/06/21 13:18:59 martynas Exp $
--- content/media/video/src/nsAudioStream.cpp.orig Wed Jun 17 07:21:42 2009
+++ content/media/video/src/nsAudioStream.cpp Sun Jun 21 15:39:50 2009
@@ -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));

View File

@ -0,0 +1,12 @@
$OpenBSD: patch-media_liboggz_include_oggz_oggz_off_t_generated_h,v 1.1 2009/06/21 13:18:59 martynas Exp $
--- media/liboggz/include/oggz/oggz_off_t_generated.h.orig Wed Jun 17 07:21:59 2009
+++ media/liboggz/include/oggz/oggz_off_t_generated.h Sun Jun 21 15:38:45 2009
@@ -59,7 +59,7 @@
#include <sys/types.h>
-#if defined(__APPLE__) || defined(SOLARIS)
+#if defined(__APPLE__) || defined(SOLARIS) || defined(__OpenBSD__)
typedef off_t oggz_off_t;
#else
typedef loff_t oggz_off_t;