1
0
mirror of https://github.com/mpv-player/mpv synced 2025-02-15 11:37:03 +00:00
mpv/player
Guido Cella 42fd6f5f6f ytdl_hook.lua: make exec return a single value
This refactors exec to only return the result of the subprocess command,
and makes the rest of run_ytdl_hook use the fields of this result,
because specifying all those return values multiple times is unwieldy
now that exec is called several times, and this is easier to read
anyway.

I removed the line
err = string.format("%s returned '%d'", err, es)
altogether instead of updating the es variable, because there was no
chance of it being executed since it would only happen when
result.killed_by_us is true, but run_ytdl_hook returns early when it is.
2023-02-27 17:04:42 +00:00
..
javascript lua/js: remove user-data helpers 2023-01-29 01:52:31 +02:00
lua ytdl_hook.lua: make exec return a single value 2023-02-27 17:04:42 +00:00
audio.c audio: remove a duplicate clearing of a struct variable 2023-02-27 17:02:19 +00:00
client.c client API: reintroduce CONF_TYPE_FLAG for type conversion 2023-02-27 11:21:49 +01:00
client.h scripting: remove race condition when toggling internal scripts 2020-03-26 23:59:44 +01:00
command.c player: set playlist title to media title if not set already 2023-02-26 22:39:54 +00:00
command.h player: make deprecated track/chapter/metadata events internal 2021-12-15 12:29:10 +01:00
configfiles.c various: drop unused #include "config.h" 2023-02-20 14:21:18 +00:00
core.h player/video: add VOCTRL_CONTENT_TYPE 2022-11-15 23:18:55 +00:00
external_files.c external_files: recognize webp files as cover art 2022-12-29 15:48:57 +01:00
external_files.h player: add automatic loading of external cover art files 2020-09-28 00:12:52 +02:00
javascript.c various: fix warning -Wimplicit-const-int-float-conversion 2023-02-26 16:45:07 +01:00
loadfile.c options: transition options from OPT_FLAG to OPT_BOOL 2023-02-21 17:15:17 +00:00
lua.c lua: add mp.del_property() 2023-01-28 14:20:20 -06:00
main.c msg: log-file set at mpv.conf: don't ignore early messages 2023-01-23 11:05:08 +02:00
misc.c vo_wayland: fix warning -Wvoid-pointer-to-enum-cast 2023-02-26 16:45:07 +01:00
osd.c various: drop unused #include "config.h" 2023-02-20 14:21:18 +00:00
playloop.c various: drop unused #include "config.h" 2023-02-20 14:21:18 +00:00
screenshot.c various: drop unused #include "config.h" 2023-02-20 14:21:18 +00:00
screenshot.h
scripting.c player/scripting: fix use-after-free when loading script folders 2021-04-08 23:47:35 +03:00
sub.c various: drop unused #include "config.h" 2023-02-20 14:21:18 +00:00
video.c various: drop unused #include "config.h" 2023-02-20 14:21:18 +00:00