diff options
Diffstat (limited to 'graphics/mplayer-share/patches/patch-ab')
-rw-r--r-- | graphics/mplayer-share/patches/patch-ab | 42 |
1 files changed, 10 insertions, 32 deletions
diff --git a/graphics/mplayer-share/patches/patch-ab b/graphics/mplayer-share/patches/patch-ab index 9b26eec9fe0..4957429ed73 100644 --- a/graphics/mplayer-share/patches/patch-ab +++ b/graphics/mplayer-share/patches/patch-ab @@ -1,34 +1,12 @@ -$NetBSD: patch-ab,v 1.1 2002/06/11 23:22:43 fredb Exp $ +$NetBSD: patch-ab,v 1.2 2002/08/07 12:53:07 veego Exp $ ---- libao2/ao_sun.c.orig Mon Apr 29 03:47:30 2002 -+++ libao2/ao_sun.c -@@ -445,13 +445,19 @@ +--- mplayer.c.orig Mon Aug 5 20:37:14 2002 ++++ mplayer.c Wed Aug 7 13:51:30 2002 +@@ -2392,6 +2392,7 @@ + } break; + case MP_CMD_MUTE: { + mixer_mute(); ++ break; } - #endif - --#ifndef __OpenBSD__ -+#if !defined(__OpenBSD__) && !defined(__NetBSD__) - ioctl(audio_fd, AUDIO_GETINFO, &info); - if (queued_bursts - info.play.eof > 2) - return 0; - #endif - -+#if defined(__NetBSD__) -+ ioctl(audio_fd, AUDIO_GETINFO, &info); -+ return info.hiwat * info.blocksize - info.play.seek; -+#else - return ao_data.outburst; -+#endif -+ - } - - // plays 'len' bytes of 'data' -@@ -507,7 +513,7 @@ - static float get_delay(){ - audio_info_t info; - ioctl(audio_fd, AUDIO_GETINFO, &info); --#ifdef __OpenBSD__ -+#if defined(__OpenBSD__) || defined(__NetBSD__) - return (float) info.play.seek/ (float)byte_per_sec ; - #else - if (info.play.samples && enable_sample_timing == RTSC_ENABLED) + case MP_CMD_LOADFILE : { + play_tree_t* e = play_tree_new(); |