summaryrefslogtreecommitdiff
path: root/audio/mpg123
diff options
context:
space:
mode:
authorkim <kim>1998-08-04 16:00:30 +0000
committerkim <kim>1998-08-04 16:00:30 +0000
commite083f70aa8b0dbd3678c6572a1f43d100ce07777 (patch)
tree71770d74a154559527b813ba164eda1116abc809 /audio/mpg123
parentc88d3a88a251d45f1384e666a345699cb6117056 (diff)
downloadpkgsrc-e083f70aa8b0dbd3678c6572a1f43d100ce07777.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/mpg123')
-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;
+ }
+ }
+