diff options
author | des <des@FreeBSD.org> | 2004-01-31 22:59:31 +0800 |
---|---|---|
committer | des <des@FreeBSD.org> | 2004-01-31 22:59:31 +0800 |
commit | 8dc85e651fe6d9088390ab8e0d096c07a6cbe585 (patch) | |
tree | 6616a0fe3c27f0b2408f52d6b28de7d9088b6142 /audio | |
parent | 4f7301f8f083fde496141cf48dbf5cd469534545 (diff) | |
download | freebsd-ports-gnome-8dc85e651fe6d9088390ab8e0d096c07a6cbe585.tar.gz freebsd-ports-gnome-8dc85e651fe6d9088390ab8e0d096c07a6cbe585.tar.zst freebsd-ports-gnome-8dc85e651fe6d9088390ab8e0d096c07a6cbe585.zip |
Fix slow startup problem also in forced rate mode.
Submitted by: Eugene Grosbein <eugen@grosbein.pp.ru>
Diffstat (limited to 'audio')
-rw-r--r-- | audio/mpg123/Makefile | 2 | ||||
-rw-r--r-- | audio/mpg123/files/patch-ai | 15 |
2 files changed, 12 insertions, 5 deletions
diff --git a/audio/mpg123/Makefile b/audio/mpg123/Makefile index 346b4be923c0..5090fd359184 100644 --- a/audio/mpg123/Makefile +++ b/audio/mpg123/Makefile @@ -7,7 +7,7 @@ PORTNAME= mpg123 PORTVERSION= 0.59r -PORTREVISION= 10 +PORTREVISION= 11 CATEGORIES= audio ipv6 MASTER_SITES= http://www.mpg123.de/mpg123/ \ http://www-ti.informatik.uni-tuebingen.de/~hippm/mpg123/ diff --git a/audio/mpg123/files/patch-ai b/audio/mpg123/files/patch-ai index def8fa80c19f..755979554131 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 13:28:57 2004 ++++ audio.c Sat Jan 31 15:56:38 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,6 +90,9 @@ +@@ -86,8 +90,15 @@ exit(1); } @@ -20,9 +20,16 @@ + if(param.force_rate) +#endif for(i=0;i<NUM_CHANNELS;i++) { - for(j=0;j<NUM_RATES;j++) { +- for(j=0;j<NUM_RATES;j++) { ++#ifdef WITH_FREEBSD_DSP_ONLY ++ for(j=0;j<NUM_RATES;j++) ++ j = NUM_RATES - 1; ++#endif ++ { ai1.channels = channels[i]; -@@ -96,6 +103,8 @@ + ai1.rate = rates[j]; + fmts = audio_get_formats(&ai1); +@@ -96,6 +107,8 @@ for(k=0;k<NUM_ENCODINGS;k++) { if((fmts & encodings[k]) == encodings[k]) capabilities[i][k][j] = 1; |