aboutsummaryrefslogtreecommitdiffstats
path: root/audio/mpg123/files
diff options
context:
space:
mode:
authordes <des@FreeBSD.org>2004-02-01 01:46:01 +0800
committerdes <des@FreeBSD.org>2004-02-01 01:46:01 +0800
commit70c24596d4a261a6aee659910d4079386f3477ce (patch)
treeeb704a3a26c3990a5a4f2fb24e3d02b1aa789aea /audio/mpg123/files
parent58d69646de3b81e23661cdc1324f2781a9161872 (diff)
downloadfreebsd-ports-gnome-70c24596d4a261a6aee659910d4079386f3477ce.tar.gz
freebsd-ports-gnome-70c24596d4a261a6aee659910d4079386f3477ce.tar.zst
freebsd-ports-gnome-70c24596d4a261a6aee659910d4079386f3477ce.zip
Correct slip-up in the previous version of patch-ai.
Diffstat (limited to 'audio/mpg123/files')
-rw-r--r--audio/mpg123/files/patch-ai9
1 files changed, 5 insertions, 4 deletions
diff --git a/audio/mpg123/files/patch-ai b/audio/mpg123/files/patch-ai
index 755979554131..2fbba50665c2 100644
--- a/audio/mpg123/files/patch-ai
+++ b/audio/mpg123/files/patch-ai
@@ -1,5 +1,5 @@
--- audio.c.orig Tue Apr 6 17:53:05 1999
-+++ audio.c Sat Jan 31 15:56:38 2004
++++ audio.c Sat Jan 31 18:41:14 2004
@@ -75,7 +75,11 @@
return;
}
@@ -12,7 +12,7 @@
if(param.force_rate) {
rates[NUM_RATES-1] = param.force_rate;
k1 = NUM_RATES;
-@@ -86,8 +90,15 @@
+@@ -86,8 +90,16 @@
exit(1);
}
@@ -22,14 +22,15 @@
for(i=0;i<NUM_CHANNELS;i++) {
- for(j=0;j<NUM_RATES;j++) {
+#ifdef WITH_FREEBSD_DSP_ONLY
-+ for(j=0;j<NUM_RATES;j++)
+ j = NUM_RATES - 1;
++#else
++ for(j=0;j<NUM_RATES;j++)
+#endif
+ {
ai1.channels = channels[i];
ai1.rate = rates[j];
fmts = audio_get_formats(&ai1);
-@@ -96,6 +107,8 @@
+@@ -96,6 +108,8 @@
for(k=0;k<NUM_ENCODINGS;k++) {
if((fmts & encodings[k]) == encodings[k])
capabilities[i][k][j] = 1;