0
0
mirror of https://github.com/mpv-player/mpv.git synced 2024-09-20 12:02:23 +02:00
mpv/player
Avi Halachmi (:avih) eb5635131d lua: use an autofree wrapper instead of mp_lua_PITA
Advantages of this approach:

- All the resources are released right after the function ends
  regardless if it threw an error or not, without having to wait
  for GC.

- Simpler code.

- Simpler lua setup which most likely uses less memory allocation and
  as a result should be quicker, though it wasn't measured.

This commit adds the autofree wrapper and uses it where mp_lua_PITA
was used. It's not yet enforced at the C level, there are still
redundant talloc_free_children leftovers, and there are few more
places which could also use autofree. The next commits will address
those.
2020-03-22 23:34:19 +02:00
..
javascript js: osd-overlay update: return the command result (match 7a76b577) 2020-03-07 12:37:35 +02:00
lua lua: restore recent end-file event, and deprecate it 2020-03-22 19:42:59 +01:00
audio.c f_decoder_wrapper: replace most public fields with setters/getters 2020-02-29 01:23:20 +01:00
client.c client API, lua: unify event code further 2020-03-21 22:09:07 +01:00
client.h scripting: load scripts from directories 2020-02-01 18:09:40 +01:00
command.c command: fix accidental stack dumping 2020-03-21 22:05:50 +01:00
command.h command: remove legacy hook API 2020-03-06 19:23:14 +01:00
configfiles.c player: fix minor coding style issue 2020-01-26 14:29:48 +01:00
core.h player: fix subtle idle mode differences on early program start 2020-03-21 19:32:50 +01:00
external_files.c external_files: add .lrc subtitle extension 2019-09-02 01:25:43 +03:00
external_files.h player: get rid of mpv_global.opts 2018-05-24 19:56:35 +02:00
javascript.c js: make wait_event autofree 2020-03-22 00:53:30 +02:00
loadfile.c client API: add a playlist entry unique ID 2020-03-21 19:33:03 +01:00
lua.c lua: use an autofree wrapper instead of mp_lua_PITA 2020-03-22 23:34:19 +02:00
main.c player: fix subtle idle mode differences on early program start 2020-03-21 19:32:50 +01:00
misc.c player: dumb seeking related stuff, make audio hr-seek default 2020-02-28 17:15:07 +01:00
osd.c f_decoder_wrapper: replace most public fields with setters/getters 2020-02-29 01:23:20 +01:00
playloop.c player: fix subtle idle mode differences on early program start 2020-03-21 19:32:50 +01:00
screenshot.c screenshot: fix typo in comment 2020-02-07 13:42:42 +01:00
screenshot.h player: make screenshot each-frame mode more accurate 2020-02-07 13:32:21 +01:00
scripting.c scripting: fix racy crash if loading .run files fails 2020-02-25 22:41:09 +01:00
sub.c player: partially fix backward playback display of cached text subtitles 2020-02-04 20:26:35 +01:00
video.c f_decoder_wrapper: replace most public fields with setters/getters 2020-02-29 01:23:20 +01:00