summaryrefslogtreecommitdiffstats
path: root/libmpv
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2014-06-08 16:11:39 +0200
committerwm4 <wm4@nowhere>2014-06-08 16:11:39 +0200
commit09dd1ed47cbd6ea1e626b6bc2bfafa3af7d11cce (patch)
treef1d05b29432cffafbef201215d57332a87ae8425 /libmpv
parent51834592fc59325d6276feb4f35a373985fc7fdd (diff)
downloadmpv-09dd1ed47cbd6ea1e626b6bc2bfafa3af7d11cce.tar.bz2
mpv-09dd1ed47cbd6ea1e626b6bc2bfafa3af7d11cce.tar.xz
client API: minor documentation fixes/enhancements
Diffstat (limited to 'libmpv')
-rw-r--r--libmpv/client.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/libmpv/client.h b/libmpv/client.h
index d0d0402da7..0f2a455ae3 100644
--- a/libmpv/client.h
+++ b/libmpv/client.h
@@ -1228,11 +1228,13 @@ void mpv_set_wakeup_callback(mpv_handle *ctx, void (*cb)(void *d), void *d);
* struct pollfd pfds[1] = {
* { .fd = pipefd, .events = POLLIN },
* };
- * // Wait until there are possibly a new mpv events.
+ * // Wait until there are possibly new mpv events.
* poll(pfds, 1, -1);
* if (pfds[0].revents & POLLIN) {
* // Empty the pipe. Doing this before calling mpv_wait_event()
- * // ensures that no wakeups get missed.
+ * // ensures that no wakeups are missed. It's not so important to
+ * // make sure the pipe is really empty (it will just cause some
+ * // additional wakeups in unlikely corner cases).
* char unused[256];
* read(pipefd, unused, sizeof(unused));
* while (1) {