diff options
author | wm4 <wm4@nowhere> | 2014-10-08 13:11:55 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2014-10-08 13:11:55 +0200 |
commit | f73778ad82685bd15c40e20b9983ce460d9c3226 (patch) | |
tree | 01556613b5a1ba36e91f93b9e891aae7d05347ac /old-makefile | |
parent | 2632ea3de618bc8b1e533260d9bb3aec277a80b3 (diff) | |
download | mpv-f73778ad82685bd15c40e20b9983ce460d9c3226.tar.bz2 mpv-f73778ad82685bd15c40e20b9983ce460d9c3226.tar.xz |
msg, client API: buffer partial lines
The API could return partial lines, meaning the message could stop
in the middle of a line, and the next message would have the rest of
it (or just the next part of it). This was a pain for the user, so do
the nasty task of buffering the lines ourselves.
Now only complete lines are sent. To make things even easier for the
API user, don't put multiple lines into a single event, but split them.
The terminal output code needed something similar (inserting a prefix
header on start of each line). To avoid code duplication, this commit
refactors the terminal output so that lines are split in a single
place.
Diffstat (limited to 'old-makefile')
0 files changed, 0 insertions, 0 deletions