0
0
mirror of https://github.com/mpv-player/mpv.git synced 2024-09-20 12:02:23 +02:00
mpv/video/out
der richter f7a32b5f29 mac: make display-names unique to allow specific selection
the Screen property localizedName returns a none unique dynamic name
that doesn't allow a specific selection of a Screen on every OS boot.
the name consists of the vendor name and model name (eg DELL U2723QE).
if the same model display is connected to the system several times,
macOS starts to add numbers to the localizedName (eg DELL U2723QE (1)),
that may not be associated to the same Screen on every OS boot or
connecting the display. it also changes the name of the first connected
display by adding that numeration. this makes it impossible specify the
proper screen with the screen-name option every time.

to circumvent this we remove the enumeration from the name and instead
add the serial number to the display-names property. this makes the
actual Screen unique and none dynamic. furthermore the selection of a
screen by name will check for equality for the old localizedName, simple
name without enumeration, serial number and the combined name with
serial number. this makes it possible to select the screen by either of
those names and identifiers, and keeps backwards compatibility with the
old behaviour.

Examples:
localized name (System Settings name): DELL U2723QE, DELL U2723QE (1)
simple name: DELL U2723QE
serial number: 123456789
combined name: DELL U2723QE (123456789)
2024-04-24 20:35:38 +02:00
..
d3d11 d3d11: disable IDXGIInfoQueue usage if dxgidebug.h is incomplete 2024-04-19 03:32:29 +02:00
gpu d3d11: disable IDXGIInfoQueue usage if dxgidebug.h is incomplete 2024-04-19 03:32:29 +02:00
gpu_next vo_gpu_next: fix -Wembedded-directive warning 2024-03-19 08:58:18 +01:00
hwdec various: fix -Wold-style-declaration warning 2024-03-19 08:58:18 +01:00
mac mac: make display-names unique to allow specific selection 2024-04-24 20:35:38 +02:00
opengl context_drm_egl: guard gbm_device on uninit 2024-04-18 14:57:01 -05:00
placebo video/out/placebo/utils: fix -Wignored-qualifiers warning 2024-03-19 08:58:18 +01:00
vulkan various: add GPU context description 2024-04-18 16:28:21 +02:00
win32 vo: add win32 context menu support 2024-04-06 08:24:06 +02:00
wldmabuf various: add GPU context description 2024-04-18 16:28:21 +02:00
android_common.c video/out/android: assert WinID value before use 2023-06-03 17:07:43 +02:00
android_common.h vo: change vo_platform_init to bool 2023-01-08 20:42:42 +00:00
aspect.c aspect: remove unused multiplication 2023-10-23 00:10:42 +00:00
aspect.h aspect: change license to LGPL 2017-06-17 17:08:51 +02:00
bitmap_packer.c video/out/bitmap_packer: Avoid empty initializer list 2019-11-18 16:50:21 +01:00
bitmap_packer.h bitmap_packer: remove some unused functions 2016-07-01 20:29:45 +02:00
cocoa_cb_common.swift mac/log: rename log functions and cleanup class 2024-03-29 14:20:40 +01:00
dither.c dither: removed some unused code 2023-10-16 15:38:59 +00:00
dither.h
dr_helper.c mp_thread: prefer tracking threads with id 2023-11-05 17:36:17 +00:00
dr_helper.h mp_thread: prefer tracking threads with id 2023-11-05 17:36:17 +00:00
drm_atomic.c drm: rewrite based around vo_drm_state 2023-01-21 17:08:29 +00:00
drm_atomic.h drm: rewrite based around vo_drm_state 2023-01-21 17:08:29 +00:00
drm_common.c various: use thread safe mp_strerror() 2024-03-19 19:30:27 +01:00
drm_common.h vo_drm: add support for YUYV format 2024-03-16 13:27:34 +01:00
drm_prime.c drm_prime: fallback to drmModeAddFB2 2020-05-08 21:26:25 +02:00
drm_prime.h drm_prime: double free bug 2020-03-05 18:12:57 +01:00
filter_kernels.c various: replace dead links in comments 2024-02-11 04:01:24 +00:00
filter_kernels.h vo_gpu: remove --scale-cutoff etc 2023-09-25 12:45:17 +02:00
libmpv_sw.c various: drop unused #include "config.h" 2023-02-20 14:21:18 +00:00
libmpv.h vo: add int flags to the get_image signature 2023-01-23 14:13:34 +01:00
mac_common.swift mac/vulkan: add support for frame timing via presentation feedback 2024-04-10 19:14:20 +02:00
meson.build meson: rename all features with underscores 2023-08-20 21:13:37 +00:00
present_sync.c present_sync: remove unneeded clear_values function 2023-11-07 00:52:46 +00:00
present_sync.h present_sync: remove unneeded clear_values function 2023-11-07 00:52:46 +00:00
vo_caca.c vo: fully replace draw_image with draw_frame 2023-10-01 14:48:38 +00:00
vo_direct3d.c vo_direct3d: support video-target-params 2024-03-27 22:08:56 +01:00
vo_dmabuf_wayland.c vo_dmabuf_wayland: use wl_fixed_from_int when setting viewport source 2024-04-21 13:42:49 -05:00
vo_drm.c vo_{drm,wlshm}: make query_format checks more correct 2024-03-16 13:27:34 +01:00
vo_gpu_next.c vo_gpu_next: invalidate cache object if requested by libplacebo 2024-04-18 02:25:12 +02:00
vo_gpu.c vo_gpu: support video-target-params 2024-03-27 22:08:56 +01:00
vo_image.c image_writer: fix TOCTOU in screenshot filename generation 2024-03-19 19:30:27 +01:00
vo_kitty.c terminal: add terminal_set_mouse_input function 2024-04-18 01:03:33 +02:00
vo_lavc.c csputils: replace mp_colorspace with pl_color_space 2024-01-22 14:54:55 +00:00
vo_libmpv.c mac/apphub: migrate remaining events functionality to new AppHub 2024-03-24 23:03:48 +01:00
vo_mediacodec_embed.c hwdec: fix undeclared identifier in mediacodec_embed 2023-06-28 10:29:24 -07:00
vo_null.c timer: change mp_sleep_us to mp_sleep_ns 2023-10-10 19:10:55 +00:00
vo_sdl.c vo_sdl: support the focused property 2023-12-29 11:31:18 +01:00
vo_sixel.c terminal: add terminal_set_mouse_input function 2024-04-18 01:03:33 +02:00
vo_tct.c terminal: add terminal_set_mouse_input function 2024-04-18 01:03:33 +02:00
vo_vaapi.c csputils: replace mp_colorspace with pl_color_space 2024-01-22 14:54:55 +00:00
vo_vdpau.c vo: remove VOCTRL_SET_EQUALIZER and simplify into UPDATE_VIDEO 2024-02-17 18:56:20 +00:00
vo_wlshm.c vo_{drm,wlshm}: make query_format checks more correct 2024-03-16 13:27:34 +01:00
vo_x11.c vo_{drm,wlshm,x11}: add support for video-target-params 2024-03-16 13:27:34 +01:00
vo_xv.c vo_xv: support video-target-params 2024-03-27 22:08:56 +01:00
vo.c vo: move target_params into responsibility of VO 2024-03-16 13:27:34 +01:00
vo.h vo: add win32 context menu support 2024-04-06 08:24:06 +02:00
w32_common.c w32_common: implement --show-in-taskbar option 2024-04-18 00:09:09 +02:00
w32_common.h w32_common: add function to control window transparency state 2024-02-17 16:06:33 +00:00
wayland_common.c wayland: fix segfault in surface_handle_enter due to memory read 2024-04-15 16:41:01 +00:00
wayland_common.h wayland: only perform a rescale if window is on one output 2024-04-14 17:09:31 +00:00
win_state.c win_state: add vo_calc_window_geometry3 2021-09-06 10:16:10 +03:00
win_state.h win_state: add vo_calc_window_geometry3 2021-09-06 10:16:10 +03:00
x11_common.c x11: always do a reset_size if geometry/autofit is updated at runtime 2024-04-18 17:40:16 +00:00
x11_common.h x11_common: fix window x/y position when updating geometry on runtime 2024-03-17 14:59:26 +00:00