mirror of
https://repo.dec05eba.com/gpu-screen-recorder
synced 2026-03-31 09:07:13 +09:00
Fix --list-capture-options with card path not working on x11 nvidia because x11 nvidia doesn't use dri
This commit is contained in:
2
TODO
2
TODO
@@ -195,3 +195,5 @@ Hide application audio module-null-sink by using sink_properties=media.class="Au
|
|||||||
Improve software encoding performance.
|
Improve software encoding performance.
|
||||||
|
|
||||||
Add option to record audio from the recorded window only.
|
Add option to record audio from the recorded window only.
|
||||||
|
|
||||||
|
Add option to automatically select best video codec available. Add -k best, -k best_10bit and -k best_hdr.
|
||||||
|
|||||||
@@ -3043,11 +3043,6 @@ int main(int argc, char **argv) {
|
|||||||
_exit(0);
|
_exit(0);
|
||||||
} else if(argc == 4) {
|
} else if(argc == 4) {
|
||||||
const char *card_path = argv[2];
|
const char *card_path = argv[2];
|
||||||
if(!try_card_has_valid_plane(card_path)) {
|
|
||||||
fprintf(stderr, "Error: \"%s\" is not a valid /dev/dri/cardN card. Make sure that you have at least one monitor connected\n", card_path);
|
|
||||||
_exit(1);
|
|
||||||
}
|
|
||||||
|
|
||||||
const char *vendor_str = argv[3];
|
const char *vendor_str = argv[3];
|
||||||
gsr_gpu_vendor vendor;
|
gsr_gpu_vendor vendor;
|
||||||
if(!gpu_vendor_from_string(vendor_str, &vendor)) {
|
if(!gpu_vendor_from_string(vendor_str, &vendor)) {
|
||||||
|
|||||||
Reference in New Issue
Block a user