summaryrefslogtreecommitdiffstats
path: root/DOCS
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2014-10-08 13:11:55 +0200
committerwm4 <wm4@nowhere>2014-10-08 13:11:55 +0200
commitf73778ad82685bd15c40e20b9983ce460d9c3226 (patch)
tree01556613b5a1ba36e91f93b9e891aae7d05347ac /DOCS
parent2632ea3de618bc8b1e533260d9bb3aec277a80b3 (diff)
downloadmpv-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 'DOCS')
-rw-r--r--DOCS/client-api-changes.rst1
1 files changed, 1 insertions, 0 deletions
diff --git a/DOCS/client-api-changes.rst b/DOCS/client-api-changes.rst
index 605d55fa47..851f3e917c 100644
--- a/DOCS/client-api-changes.rst
+++ b/DOCS/client-api-changes.rst
@@ -26,6 +26,7 @@ API changes
::
1.6 - modify "core-idle" property behavior
+ - MPV_EVENT_LOG_MESSAGE now always sends complete lines
--- mpv 0.6.0 is released ---
1.5 - change in X11 and "--wid" behavior again. The previous change didn't
work as expected, and now the behavior can be explicitly controlled