1
0
mirror of https://github.com/mpv-player/mpv synced 2024-12-22 06:42:03 +00:00
mpv/libmpv
wm4 ef827af06c client API: add mpv_wait_async_requests()
This does what it's documented to do.

The implementation reuses the code in mpv_detach_destroy(). Due to the
way async requests currently work, just sending a synchronous dummy
request (like a "ignore" command) would be enough to ensure
synchronization, but this code will continue to work even if this
changes.

The line "ctx->event_mask = 0;" is removed, but it shouldn't be needed.
(If a client is somehow very slow to terminate, this could silence an
annoying queue overflow message, but all in all it does nothing.)

Calling mpv_wait_async_requests() and mpv_wait_event() concurrently is
in theory allowed, so change pthread_cond_signal() to
pthread_cond_broadcast() to avoid missed wakeups.

As requested in issue #1542.
2015-02-02 18:07:37 +01:00
..
client.h client API: add mpv_wait_async_requests() 2015-02-02 18:07:37 +01:00
mpv.def client API: add mpv_wait_async_requests() 2015-02-02 18:07:37 +01:00
mpv.pc.in
opengl_cb.h vo_opengl_cb: make mpv_opengl_cb_render() return left frames 2015-01-08 21:32:22 +01:00
qthelper.hpp client API: qthelper: return NULL as handle if unset 2014-12-30 23:28:07 +01:00