[vlc-commits] core: add player API

Thomas Guillem git at videolan.org
Thu Nov 15 17:29:04 CET 2018


vlc | branch: master | Thomas Guillem <thomas at gllm.fr> | Mon Apr  9 14:23:36 2018 +0200| [a80c78fc2a0431a8822e581126e108266ce07d9a] | committer: Thomas Guillem

core: add player API

This API will replace the usage of input_thread_t from interface modules. The
player implementation continue to use input_thread_t in private. The goal is to
hide the input_thread_t API when every modules are switched to the player API.

TODO (all need to be fixed, for VLC 4.0):

 - Gapless: API is complete but not implemented (the player can play several
   medias in a row, but without gapless).
 - Position callbacks: still using the input_thread_t position that is really
   imprecise (notified every 250ms minimum, and sometime more, depending on
   pf_demux implementation).
 - Seek/discontinuity callbacks: when seeking, the player can still send
   position of the requested position, the actual position or the next position
   to come. This leads to UI inconsistency.
 - OSD messages should be display from input callbacks but it's not possible
   now since you can't know if the event come from the user or from the core.

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=a80c78fc2a0431a8822e581126e108266ce07d9a
---

 PLAYER_TODO.txt      |    6 +
 include/vlc_player.h | 2761 ++++++++++++++++++++++++++++++++++++++
 po/POTFILES.in       |    1 +
 src/Makefile.am      |    3 +
 src/input/player.c   | 3585 ++++++++++++++++++++++++++++++++++++++++++++++++++
 src/input/player.h   |   35 +
 src/libvlccore.sym   |  110 ++
 7 files changed, 6501 insertions(+)

Diff:   http://git.videolan.org/gitweb.cgi/vlc.git/?a=commitdiff;h=a80c78fc2a0431a8822e581126e108266ce07d9a


More information about the vlc-commits mailing list