mirror of
https://repo.dec05eba.com/gpu-screen-recorder
synced 2026-03-31 09:07:13 +09:00
Show info why screencast session is not restore if -restore-portal-session yes is not used
This commit is contained in:
@@ -2197,8 +2197,13 @@ int main(int argc, char **argv) {
|
||||
replay_buffer_size_secs += std::ceil(keyint); // Add a few seconds to account of lost packets because of non-keyframe packets skipped
|
||||
}
|
||||
|
||||
// TODO: Remove strdup
|
||||
const char *window_str = strdup(args["-w"].value());
|
||||
|
||||
if(!restore_portal_session && strcmp(window_str, "portal") == 0) {
|
||||
fprintf(stderr, "gsr info: '-w portal' option used without '-restore-portal-session yes'. The previous screencast session will be ignored\n");
|
||||
}
|
||||
|
||||
bool wayland = false;
|
||||
Display *dpy = XOpenDisplay(nullptr);
|
||||
if (!dpy) {
|
||||
|
||||
Reference in New Issue
Block a user