Include virtual capture target in portal capture

This commit is contained in:
dec05eba
2024-07-15 23:17:00 +02:00
parent a3b773a963
commit 73146d8957
3 changed files with 3 additions and 3 deletions

View File

@@ -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;
}

View File

@@ -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;

View File

@@ -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);