1
0
mirror of https://github.com/mpv-player/mpv synced 2025-01-19 22:01:10 +00:00
mpv/player
wm4 3b7402b51c client API: call wakeup callback if there are new messages
Listening on messages currently uses polling (every time
mpv_wait_event() has no new events, the message buffer is polled and a
message event is possibly created). Improve this situation a bit, and
call the user-supplied wakeup callback.

This will increase the frequency with which the wakeup callback is
called, but the client is already supposed to be able to deal with this
situation. Also, as before, calling mpv_wait_event() from the wakeup
callback is forbidden, so the client can't read new messages from the
callback directly.

The wakeup pipe is written either. Since the wakeup pipe is created
lazily, we can't access the pipe handle without creating a race
condition or a deadlock. (This is actually very silly, since in practice
the race condition won't matter, but for now let's keep it clean.)
2014-06-06 19:24:30 +02:00
..
lua osc: keep track of the "fullscreen" state when it changes 2014-06-02 22:20:25 +02:00
timeline tl_mpv_edl: correct misspelling on line 233 2014-05-22 20:59:31 +02:00
audio.c audio: change handling of an EOF corner case 2014-05-30 02:16:43 +02:00
client.c client API: call wakeup callback if there are new messages 2014-06-06 19:24:30 +02:00
client.h player: reorganize how lua scripts are loaded 2014-05-13 02:39:37 +02:00
command.c command: format_bitrate: fix conversion to kbits and mbits 2014-06-02 22:20:25 +02:00
command.h client API: report success status when running commands 2014-06-01 03:41:46 +02:00
configfiles.c player: write file name to the watch later config file 2014-06-01 19:55:45 +02:00
core.h command: add a disc-menu-active property 2014-05-18 00:03:47 +02:00
discnav.c stream: kill start_pos, remove --sb option 2014-05-24 16:17:50 +02:00
loadfile.c stream: kill start_pos, remove --sb option 2014-05-24 16:17:50 +02:00
lua.c lua: slightly nicer diagnostics output 2014-05-27 00:02:34 +02:00
main_fn.c build: add option to build a library 2014-02-10 21:25:22 +01:00
main.c client API: fix terminal usage 2014-06-06 17:28:13 +02:00
misc.c stream: don't use end_pos 2014-05-24 16:17:51 +02:00
osd.c player: hack to fix --msgmodule --term-osd-bar 2014-04-13 13:03:31 +02:00
playloop.c stream: don't use end_pos 2014-05-24 16:17:51 +02:00
screenshot.c video: remove redundant mp_image display_w/_h members 2014-04-29 13:31:59 +02:00
screenshot.h
scripting.c lua: make warning about unknown scripts -v only 2014-06-04 00:33:17 +02:00
sub.c video: handle colorspace and aspect overrides separately 2014-05-02 01:09:55 +02:00
video.c video: fix display of cover art with vo_vdpau 2014-05-22 13:50:10 +02:00