diff options
author | wm4 <wm4@nowhere> | 2014-01-19 20:21:11 +0100 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2014-01-19 21:15:54 +0100 |
commit | 333a9491b7f01a1d61414f0e6ffe9d81a4acb300 (patch) | |
tree | b820b433a21391f550857d83594e16d337cbaf5f /stream/audio_in.h | |
parent | 6afebbd0d9975c7aed9351a2a10740abeb111817 (diff) | |
download | mpv-333a9491b7f01a1d61414f0e6ffe9d81a4acb300.tar.bz2 mpv-333a9491b7f01a1d61414f0e6ffe9d81a4acb300.tar.xz |
stream: redo stream_read_line()
This simplifies the implementation and should make it more robust. For
example, we return an error if a line is longer than the provided buffer
(instead of splitting the line).
The code is much shorter, because now finding the new line and reading
characters is done in one go.
Diffstat (limited to 'stream/audio_in.h')
0 files changed, 0 insertions, 0 deletions