summaryrefslogtreecommitdiff
path: root/audio
diff options
context:
space:
mode:
authorkim <kim>1998-08-04 16:00:30 +0000
committerkim <kim>1998-08-04 16:00:30 +0000
commitfcd60bddc9f135f6ffec8652fe49e94fe4b805dc (patch)
tree71770d74a154559527b813ba164eda1116abc809 /audio
parent1aa4295c172e31a8190c13744d8978304f58f864 (diff)
downloadpkgsrc-fcd60bddc9f135f6ffec8652fe49e94fe4b805dc.tar.gz
Don't start playing from the audio buffer before decoded audio
has been written into it (fixes the "beginning of song not played" problem with the "-b" option).
Diffstat (limited to 'audio')
-rw-r--r--audio/mpg123/patches/patch-ab13
1 files changed, 13 insertions, 0 deletions
diff --git a/audio/mpg123/patches/patch-ab b/audio/mpg123/patches/patch-ab
new file mode 100644
index 00000000000..1d35f1fb42b
--- /dev/null
+++ b/audio/mpg123/patches/patch-ab
@@ -0,0 +1,13 @@
+--- mpg123.c Wed Feb 11 23:15:08 1998
++++ mpg123.c Mon Apr 27 16:40:40 1998
+@@ -161,6 +161,9 @@
+ _exit(0);
+ default: /* parent */
+ xfermem_init_writer (buffermem);
++ if (xfermem_block(XF_WRITER, buffermem) == XF_CMD_TERMINATE) {
++ intflag = TRUE;
++ }
+ param.outmode = DECODE_BUFFER;
+ }
+ }
+