1
0
mirror of https://github.com/mpv-player/mpv synced 2024-12-29 02:22:19 +00:00
mpv/osdep
Guido Cella 82ffe8f425 loadfile: update the format of terminal track information
Stop making unselected tracks and editions grey because they can be hard
to read over a dark background (\033[2m would be hard to differentiate
from regular text with a light theme instead), and because there is no
way to not print the escape sequences in --log-file.

Just use the same circles as the OSD and OSC. We need to print the empty
circles for alignment on mlterm with East Asian fonts (we could also
make them invisible with \033[8m but it would still get added to log
files).

Add back the space before tracks and editions when printed after
"Playing..." or "Track switched" and similar, so they look like a
sub-section of it, consistently with the metadata which starts with
space which makes it look like a sub-section of the "File tags" line.

Leave 2 spaces between track columns.

Make the lang options only as long as the longest language.

Place hls-bitrate within the same parentheses as the other data.

Replace the incomprehensible (*) (f) and [P] with textual descriptions
within []. Also place external there.

Stop converting Hz to kHz for consistency with other log messages, e.g.
AO: [pipewire] 48000Hz stereo 2ch floatp

Remove the space in "2 ch" so it doesn't look like 2 separate values (We
considered using mp_chmap_to_str(&s->codec->channels) but it prints
values like "unknown2").
2024-06-24 16:19:31 +02:00
..
android various: fix tabs in code 2024-05-07 11:23:08 +02:00
mac cocoa-cb: guard color spaces that are only available on 10.15.4 upwards 2024-06-18 19:30:07 +02:00
compiler.h osdep/compiler: clang also recognizes those attributes 2024-05-06 22:01:17 +02:00
dirent-win.h osdep/dirent: add implementation for Windows SDK build 2024-05-06 22:01:17 +02:00
endian.h osdep/endian: add missing byte order defines 2024-06-05 19:07:58 +02:00
getpid.h
glob-win.c
io.c osdep/io: fix leak of environment strings on win32 2024-05-20 18:18:42 +02:00
io.h win32: fix platform checks 2024-05-06 22:01:17 +02:00
language-mac.c osdep/mac: make mac naming of files, folders and function consistent 2024-02-28 15:52:47 +01:00
language-posix.c language-posix: as a fallback, treat "C" as "en" 2023-07-25 11:34:06 +02:00
language-win.c osdep: add mp_get_user_langs 2023-06-25 11:01:58 +02:00
main-fn-mac.c mac/app: cleanup and optimise App launch and termination 2024-04-01 22:13:39 +02:00
main-fn-unix.c
main-fn-win.c win32: add WinMain 2024-05-06 22:01:17 +02:00
main-fn.h
mpv.exe.manifest win32: opt in to the windows segment heap 2023-12-22 16:36:31 +01:00
mpv.rc osdep/mpv.rc: fix encoding of MPVCOPYRIGHT 2024-05-06 22:01:17 +02:00
path-darwin.c ALL: use new mp_thread abstraction 2023-11-05 17:36:17 +00:00
path-mac.m osdep/mac: make mac naming of files, folders and function consistent 2024-02-28 15:52:47 +01:00
path-unix.c ALL: use new mp_thread abstraction 2023-11-05 17:36:17 +00:00
path-uwp.c various: use correct PATH_MAX for win32 2023-12-27 22:55:56 +01:00
path-win.c osdep/path-win: fix leak of portable_path 2024-05-20 18:18:42 +02:00
path.h osdep/mac: make mac naming of files, folders and function consistent 2024-02-28 15:52:47 +01:00
poll_wrapper.c vo: don't sleep 1ms always when requested time is in the past 2023-11-09 21:31:58 +00:00
poll_wrapper.h vo: use mp_poll wrapper in wait_events when applicable 2023-10-10 19:10:55 +00:00
semaphore-mac.c osdep/mac: make mac naming of files, folders and function consistent 2024-02-28 15:52:47 +01:00
semaphore.h osdep/semaphore: don't include files if they are not used 2024-05-06 22:01:17 +02:00
strnlen.h
subprocess-dummy.c
subprocess-posix.c osdep: fix infinite loop when cancelling subprocess 2024-02-11 14:13:22 +01:00
subprocess-win.c various: replace dead links in comments 2024-02-11 04:01:24 +00:00
subprocess.c ALL: use new mp_thread abstraction 2023-11-05 17:36:17 +00:00
subprocess.h
terminal-dummy.c win32: change fputs to fwrite wrapper 2024-04-07 20:23:04 +02:00
terminal-unix.c input: map Num 5 to distinct value when numlock is off 2024-06-13 20:42:24 +02:00
terminal-win.c terminal-win: use proper NTAPI callback for FLS 2024-06-06 21:42:12 +02:00
terminal.h loadfile: update the format of terminal track information 2024-06-24 16:19:31 +02:00
threads-posix.c threads: remove unused code 2023-11-05 17:36:17 +00:00
threads-posix.h osdep/threads: fix warning: initializer element is not constant 2024-03-19 08:58:18 +01:00
threads-win32.h win32: increase hires timer resolution 2024-03-19 20:23:25 +01:00
threads.h threads: unbreak mpv on builds without asserts 2023-11-06 04:14:49 +00:00
timer-darwin.c mac/vulkan: add support for frame timing via presentation feedback 2024-04-10 19:14:20 +02:00
timer-linux.c osdep/timer-linux: check clock availability on init 2023-11-08 04:32:10 +00:00
timer-win32.c various: remove unused sys/time.h include 2024-05-06 22:01:17 +02:00
timer.c various: remove unused sys/time.h include 2024-05-06 22:01:17 +02:00
timer.h mac/vulkan: add support for frame timing via presentation feedback 2024-04-10 19:14:20 +02:00
utils-mac.c osdep/mac: make mac naming of files, folders and function consistent 2024-02-28 15:52:47 +01:00
utils-mac.h osdep/mac: make mac naming of files, folders and function consistent 2024-02-28 15:52:47 +01:00
w32_keyboard.c input: map Num 5 to distinct value when numlock is off 2024-06-13 20:42:24 +02:00
w32_keyboard.h
win32-console-wrapper.c win32-console-wrapper: fix printf specifiers 2024-03-19 19:56:25 +01:00
windows_utils.c win32: implement shell link target resolving 2024-03-19 11:34:00 +01:00
windows_utils.h win32: implement shell link target resolving 2024-03-19 11:34:00 +01:00