oggz_off_t is off_t
position is int64_t
This commit is contained in:
parent
0277f1cc84
commit
1165083ba7
@ -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));
|
@ -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;
|
Loading…
Reference in New Issue
Block a user