mirror of
https://repo.dec05eba.com/gpu-screen-recorder
synced 2026-05-07 15:19:55 +09:00
Include virtual capture target in portal capture
This commit is contained in:
@@ -179,7 +179,7 @@ static bool gsr_capture_portal_setup_dbus(gsr_capture_portal *self) {
|
||||
}
|
||||
|
||||
fprintf(stderr, "gsr info: gsr_capture_portal_setup_dbus: SelectSources\n");
|
||||
if(!gsr_dbus_screencast_select_sources(&self->dbus, self->session_handle, GSR_PORTAL_CAPTURE_TYPE_MONITOR | GSR_PORTAL_CAPTURE_TYPE_WINDOW, self->params.record_cursor ? GSR_PORTAL_CURSOR_MODE_EMBEDDED : GSR_PORTAL_CURSOR_MODE_HIDDEN)) {
|
||||
if(!gsr_dbus_screencast_select_sources(&self->dbus, self->session_handle, GSR_PORTAL_CAPTURE_TYPE_ALL, self->params.record_cursor ? GSR_PORTAL_CURSOR_MODE_EMBEDDED : GSR_PORTAL_CURSOR_MODE_HIDDEN)) {
|
||||
fprintf(stderr, "gsr error: gsr_capture_portal_setup_dbus: SelectSources failed\n");
|
||||
return false;
|
||||
}
|
||||
|
||||
@@ -2201,7 +2201,7 @@ int main(int argc, char **argv) {
|
||||
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");
|
||||
fprintf(stderr, "gsr info: option '-w portal' was used without '-restore-portal-session yes'. The previous screencast session will be ignored\n");
|
||||
}
|
||||
|
||||
bool wayland = false;
|
||||
|
||||
@@ -551,7 +551,7 @@ void gsr_pipewire_deinit(gsr_pipewire *self) {
|
||||
}
|
||||
}
|
||||
|
||||
/* TODO: Do this in the thread instead, otherwise this is not guaranteed to always work and may produce glitched output */
|
||||
/* TODO: Do this in the thread instead, otherwise this is not guaranteed to always work and may produce glitched output (happens now when resizing the captured window) */
|
||||
bool gsr_pipewire_map_texture(gsr_pipewire *self, unsigned int texture_id, unsigned int cursor_texture_id, gsr_pipewire_region *region, gsr_pipewire_region *cursor_region) {
|
||||
pthread_mutex_lock(&self->mutex);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user