0
0
mirror of https://github.com/mpv-player/mpv.git synced 2024-09-20 12:02:23 +02:00
mpv/player
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
..
lua lua: do not use math.pow() 2015-01-25 01:23:29 +01:00
timeline player: demote matroska ordered chapter scanning messages to Verbose 2015-01-28 11:43:48 +09:00
audio.c player: don't treat audio playback restart while paused special 2015-01-30 23:54:43 +01:00
client.c client API: add mpv_wait_async_requests() 2015-02-02 18:07:37 +01:00
client.h vo_opengl_cb: simplify API uninitialization 2014-12-31 20:31:19 +01:00
command.c command: add dummy get implementation for tv-channel property 2015-02-02 18:07:37 +01:00
command.h command: send additional property change events in-between loading 2015-02-01 18:25:12 +01:00
configfiles.c options: add option for ignoring patch in resume mechanism 2014-12-13 00:04:08 +01:00
core.h player: remove redundant variable 2015-01-29 15:15:01 +01:00
discnav.c osc, dvd, bd: fix mouse state when changing menu modes 2014-12-05 16:04:04 +01:00
loadfile.c command: send additional property change events in-between loading 2015-02-01 18:25:12 +01:00
lua.c client API: be more lenient about mpv_suspend/resume mismatches 2014-12-15 14:44:47 +01:00
main_fn.c cocoa: fix build by using the correct HAVE_* macro 2014-08-06 09:31:59 +02:00
main.c win32: remove check for SetPriorityClass() 2015-01-20 15:18:51 +01:00
misc.c player: don't display zero duration for files with unknown duration 2014-10-29 21:54:59 +01:00
osd.c command: improve A-B loop behavior 2014-11-18 20:28:54 +01:00
playloop.c player: move more code out of central playloop function 2015-01-29 15:15:13 +01:00
screenshot.c options: list correct default value for --screenshot-template 2015-01-26 11:38:23 +01:00
screenshot.h Move mpvcore/player/ to player/ 2013-12-17 00:53:22 +01:00
scripting.c scripting: fix/improve deprecation message 2014-12-15 06:24:05 +01:00
sub.c player: fix crash wtih --secondary-sid 2015-01-13 02:45:51 +01:00
video.c player: dump audio jitter to stats file 2015-02-01 18:32:26 +01:00