diff options
author | jmmv <jmmv@pkgsrc.org> | 2004-01-26 12:06:40 +0000 |
---|---|---|
committer | jmmv <jmmv@pkgsrc.org> | 2004-01-26 12:06:40 +0000 |
commit | 20f2efd3cac4e0b4426985e7e4c6667a55429fe1 (patch) | |
tree | 81669b36ee210f1ee80bb87d0d36f77ffdfd46c0 /multimedia/mplayer-share/patches/patch-ae | |
parent | d2ddaf2c6e9260188feb21590397efb9c1f310d3 (diff) | |
download | pkgsrc-20f2efd3cac4e0b4426985e7e4c6667a55429fe1.tar.gz |
Move mplayer-share to the multimedia category (coming from graphics).
This is version 1.0rc3.
Diffstat (limited to 'multimedia/mplayer-share/patches/patch-ae')
-rw-r--r-- | multimedia/mplayer-share/patches/patch-ae | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/multimedia/mplayer-share/patches/patch-ae b/multimedia/mplayer-share/patches/patch-ae new file mode 100644 index 00000000000..c7f2352ea2a --- /dev/null +++ b/multimedia/mplayer-share/patches/patch-ae @@ -0,0 +1,42 @@ +$NetBSD: patch-ae,v 1.1.1.1 2004/01/26 12:06:43 jmmv Exp $ + +--- libmpdemux/tvi_bsdbt848.c.orig Sat Oct 4 19:29:01 2003 ++++ libmpdemux/tvi_bsdbt848.c +@@ -41,6 +41,7 @@ + + #ifdef __NetBSD__ + #include <dev/ic/bt8xx.h> ++#include <sys/audioio.h> + #else + #include <machine/ioctl_meteor.h> + #include <machine/ioctl_bt848.h> +@@ -785,14 +786,29 @@ return(priv->dspbytesread * 1.0 / priv-> + static int get_audio_framesize(priv_t *priv) + { + int bytesavail; ++#ifdef __NetBSD__ ++struct audio_info auinf; ++#endif + + if(priv->dspready == FALSE) return 0; + ++#ifdef __NetBSD__ ++if(ioctl(priv->dspfd, AUDIO_GETINFO, &auinf) < 0) ++ { ++ perror("AUDIO_GETINFO"); ++ return(TVI_CONTROL_FALSE); ++ } ++else ++ { ++ bytesavail = auinf.record.seek; /* * priv->dspsamplesize; */ ++ } ++#else + if(ioctl(priv->dspfd, FIONREAD, &bytesavail) < 0) + { + perror("FIONREAD"); + return(TVI_CONTROL_FALSE); + } ++#endif + + /* When mencoder wants audio data, it wants data.. + it won't go do anything else until it gets it :( */ |