1
0
mirror of https://github.com/mpv-player/mpv synced 2025-02-21 15:27:00 +00:00
mpv/player
wm4 733bdebcb9 client API: minor optimizations for property notification
Internally, there are two mechanisms which can trigger property
notification as used with "observed" properties in the client API.

The first mechanism associates events with a group of properties that
are potentially changed by a certain event. mp_event_property_change[]
declares these associations, and maps each event to a set of strings.
When an event happens, the set of strings is matched against the list of
observed properties of each client. Make this more efficient by
comparing bitsets of events instead. This way, only a bit-wise "and" is
needed for each observed property. Even better, we can completely skip
clients which have no observed properties that match.

The second mechanism just updates individual properties explicitly by
name. Optimize this by using the property index instead. It would be
nice if we could reuse the first mechanism for the second one, but
there are too many properties to fit into a 64 bit mask.

(Though the limit on 64 events might get us into trouble later...)
2014-08-02 01:53:22 +02:00
..
lua osc: Do precise seeks on simple clicks on seekbar 2014-07-29 19:26:32 +02:00
timeline demux: make start time a simple field 2014-07-05 17:07:15 +02:00
audio.c audio: simplify condition 2014-07-31 21:11:49 +02:00
client.c client API: minor optimizations for property notification 2014-08-02 01:53:22 +02:00
client.h client API: minor optimizations for property notification 2014-08-02 01:53:22 +02:00
command.c client API: minor optimizations for property notification 2014-08-02 01:53:22 +02:00
command.h client API: minor optimizations for property notification 2014-08-02 01:53:22 +02:00
configfiles.c Revert "Remove DVD and Bluray support" 2014-07-15 01:49:02 +02:00
core.h client API: make "cache" property and similar observable 2014-07-31 04:19:41 +02:00
discnav.c demux: add a demuxer thread 2014-07-16 23:25:56 +02:00
loadfile.c player: split seek_reset() 2014-07-30 23:29:00 +02:00
lua.c command: add a property that returns a list of all properties 2014-08-02 01:53:21 +02:00
main_fn.c build: add option to build a library 2014-02-10 21:25:22 +01:00
main.c Remove the last remains of slave mode 2014-08-01 22:57:56 +02:00
misc.c player: fix desync when seeking and switching external tracks 2014-07-29 17:55:28 +02:00
osd.c osd: properly handle OSD bar timeout 2014-07-21 19:35:20 +02:00
playloop.c player: don't ignore first chapter 2014-07-31 22:54:57 +02:00
screenshot.c player: make the time display relative to start PTS 2014-06-29 20:39:49 +02:00
screenshot.h
scripting.c build: include <strings.h> for strcasecmp() 2014-07-10 08:29:32 +02:00
sub.c player: split seek_reset() 2014-07-30 23:29:00 +02:00
video.c video: fix attached picture mode 2014-07-31 21:57:11 +02:00