mirror of
https://repo.dec05eba.com/gpu-screen-recorder
synced 2026-05-07 15:19:55 +09:00
Include system info (x11 vs wayland) in --info output
This commit is contained in:
@@ -1596,6 +1596,10 @@ static bool is_xwayland(Display *display) {
|
|||||||
return xwayland_found;
|
return xwayland_found;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static void list_system_info(bool wayland) {
|
||||||
|
printf("display_server %s\n", wayland ? "wayland" : "x11");
|
||||||
|
}
|
||||||
|
|
||||||
static void list_gpu_info(gsr_egl *egl) {
|
static void list_gpu_info(gsr_egl *egl) {
|
||||||
switch(egl->gpu_info.vendor) {
|
switch(egl->gpu_info.vendor) {
|
||||||
case GSR_GPU_VENDOR_AMD:
|
case GSR_GPU_VENDOR_AMD:
|
||||||
@@ -1707,6 +1711,8 @@ static void list_command() {
|
|||||||
|
|
||||||
av_log_set_level(AV_LOG_FATAL);
|
av_log_set_level(AV_LOG_FATAL);
|
||||||
|
|
||||||
|
puts("section=system_info");
|
||||||
|
list_system_info(wayland);
|
||||||
puts("section=gpu_info");
|
puts("section=gpu_info");
|
||||||
list_gpu_info(&egl);
|
list_gpu_info(&egl);
|
||||||
puts("section=video_codecs");
|
puts("section=video_codecs");
|
||||||
|
|||||||
Reference in New Issue
Block a user