mirror of
https://repo.dec05eba.com/gpu-screen-recorder
synced 2026-05-06 06:50:43 +09:00
Remove old condition
This commit is contained in:
12
src/main.cpp
12
src/main.cpp
@@ -1724,17 +1724,6 @@ static gsr_capture* create_capture_impl(const char *window_str, const char *scre
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if(use_software_video_encoder && (wayland || egl->gpu_info.vendor != GSR_GPU_VENDOR_NVIDIA)) {
|
|
||||||
gsr_capture_kms_params kms_params;
|
|
||||||
kms_params.egl = egl;
|
|
||||||
kms_params.display_to_capture = window_str;
|
|
||||||
kms_params.hdr = video_codec_is_hdr(video_codec);
|
|
||||||
kms_params.color_range = color_range;
|
|
||||||
kms_params.record_cursor = record_cursor;
|
|
||||||
capture = gsr_capture_kms_create(&kms_params);
|
|
||||||
if(!capture)
|
|
||||||
_exit(1);
|
|
||||||
} else {
|
|
||||||
if(egl->gpu_info.vendor == GSR_GPU_VENDOR_NVIDIA) {
|
if(egl->gpu_info.vendor == GSR_GPU_VENDOR_NVIDIA) {
|
||||||
if(wayland) {
|
if(wayland) {
|
||||||
gsr_capture_kms_params kms_params;
|
gsr_capture_kms_params kms_params;
|
||||||
@@ -1788,7 +1777,6 @@ static gsr_capture* create_capture_impl(const char *window_str, const char *scre
|
|||||||
if(!capture)
|
if(!capture)
|
||||||
_exit(1);
|
_exit(1);
|
||||||
}
|
}
|
||||||
}
|
|
||||||
} else {
|
} else {
|
||||||
if(wayland) {
|
if(wayland) {
|
||||||
fprintf(stderr, "Error: GPU Screen Recorder window capture only works in a pure X11 session. Xwayland is not supported. You can record a monitor instead on wayland\n");
|
fprintf(stderr, "Error: GPU Screen Recorder window capture only works in a pure X11 session. Xwayland is not supported. You can record a monitor instead on wayland\n");
|
||||||
|
|||||||
Reference in New Issue
Block a user