1
0
mirror of https://github.com/mpv-player/mpv synced 2024-12-19 21:31:52 +00:00
mpv/player
wm4 e00aad18cb command: redo the property type
Instead of absuing m_option to store the property list, introduce a
separate type for properties. m_option is still used to handle data
types. The property declaration itself now never contains the option
type, and instead it's always queried with M_PROPERTY_GET_TYPE. (This
was already done with some properties, now all properties use it.)

This also fixes that the function signatures did not match the function
type with which these functions were called. They were called as:

   int (*)(const m_option_t*, int, void*, void*)

but the actual function signatures were:

   int (*)(m_option_t*, int, void*, MPContext *)

Two arguments were mismatched.

This adds one line per property implementation. With additional the
reordering of the parameters, this makes most of the changes in this
commit.
2014-06-13 02:11:39 +02:00
..
lua client API: change mpv_wait_event() timeout semantics 2014-06-07 15:57:47 +02:00
timeline tl_mpv_edl: correct misspelling on line 233 2014-05-22 20:59:31 +02:00
audio.c audio: add a "weak" gapless mode, and make it default 2014-06-09 01:20:53 +02:00
client.c Add more const 2014-06-11 00:39:14 +02:00
client.h Add more const 2014-06-11 00:39:14 +02:00
command.c command: redo the property type 2014-06-13 02:11:39 +02:00
command.h command: redo the property type 2014-06-13 02:11:39 +02:00
configfiles.c encode: make option struct local 2014-06-11 02:05:07 +02:00
core.h audio: add a "weak" gapless mode, and make it default 2014-06-09 01:20:53 +02:00
discnav.c stream: kill start_pos, remove --sb option 2014-05-24 16:17:50 +02:00
loadfile.c Add more const 2014-06-11 00:39:14 +02:00
lua.c command: redo the property type 2014-06-13 02:11:39 +02:00
main_fn.c build: add option to build a library 2014-02-10 21:25:22 +01:00
main.c win32: implement --priority differently 2014-06-12 00:55:14 +02:00
misc.c stream: don't use end_pos 2014-05-24 16:17:51 +02:00
osd.c player: show "neutral" position markers for OSD bars 2014-06-08 23:52:58 +02:00
playloop.c player: hide some messages in verbose mode 2014-06-09 01:21:13 +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 Add more const 2014-06-11 00:39:14 +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