1
0
mirror of http://mpg123.de/trunk/.git synced 2025-10-29 14:09:21 +03:00

mpg123: --streamdump with unintr_write().

git-svn-id: svn://scm.orgis.org/mpg123/trunk@4627 35dc7657-300d-0410-a2e5-dc2837fedb53
This commit is contained in:
thor
2020-04-05 22:41:01 +00:00
parent a8c1de7de7
commit e8178d7ad1
2 changed files with 2 additions and 1 deletions

1
NEWS
View File

@@ -25,6 +25,7 @@ TODO: Make libout123 and/or mpg123 use that to convert on the fly. Optionally?
out there.
- mpg123:
-- Drop --STDOUT (never properly implemented, use pipe to out123 instead).
-- Make --streamdump use unintr_write() to avoid inconsistencies.
-- Now sets non-zero exit code when any one track of the playlist
fails to either produce at least one frame of playback, if there
is data that should produce such (i.e. /dev/zero is bad, /dev/null is

View File

@@ -20,7 +20,7 @@ static ssize_t dump_read(int fd, void *buf, size_t count)
ssize_t ret = read(fd, buf, count);
if(ret > 0 && dump_fd > -1)
{
ret = write(dump_fd, buf, ret);
ret = unintr_write(dump_fd, buf, ret);
}
return ret;
}