pkgsrc-wip/avifile-devel/patches/patch-aa
OBATA Akio dd4166de1d update avifile-devel to 0.7.45.
Changes were not noted.
2006-08-10 05:05:31 +00:00

31 lines
797 B
Text

$NetBSD: patch-aa,v 1.2 2006/08/10 05:05:31 obache Exp $
--- lib/aviplay/SunAudioRenderer.cpp.orig 2003-04-22 11:30:31.000000000 +0000
+++ lib/aviplay/SunAudioRenderer.cpp
@@ -14,10 +14,15 @@ SunAudioRenderer implementation
#include "utils.h"
#include "avm_output.h"
+#include <sys/types.h>
#include <sys/ioctl.h>
#include <sys/audioio.h>
#include <unistd.h>
+#ifdef __linux__
#include <stropts.h>
+#else
+#include <strings.h>
+#endif
#include <errno.h>
#include <fcntl.h>
#include <stdio.h>
@@ -210,7 +215,11 @@ int SunAudioRenderer::reset()
* 'paused' state, else the AUDIO_DRAIN ioctl hangs
* forever.
*/
+#ifdef __NetBSD__
+ ioctl(m_iAudioFd, AUDIO_FLUSH, 0);
+#else
ioctl(m_iAudioFd, I_FLUSH, FLUSHW);
+#endif
audio_info_t audio_info;
AUDIO_INITINFO(&audio_info);