aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2024-07-16 23:17:29 +0200
committerdec05eba <dec05eba@protonmail.com>2024-07-16 23:17:29 +0200
commite59faebe545fa2c9404434d75f8df39835cb997b (patch)
treed4208cd7b21628eef507e78844bf84d06df85df4
parent73146d8957d6dc746d9c41cdd4f71c00d1b7000e (diff)
Pipewire: allow capturing at higher fps than 60
-rw-r--r--src/dbus.c3
-rw-r--r--src/pipewire.c3
2 files changed, 2 insertions, 4 deletions
diff --git a/src/dbus.c b/src/dbus.c
index 0e67295..8bfad81 100644
--- a/src/dbus.c
+++ b/src/dbus.c
@@ -565,7 +565,7 @@ bool gsr_dbus_screencast_create_session(gsr_dbus *self, char **session_handle) {
args[1].str = session_handle_token;
if(!gsr_dbus_call_screencast_method(self, "CreateSession", NULL, NULL, args, 2, NULL)) {
- fprintf(stderr, "gsr error: gsr_dbus_screencast_create_session: failed to setup ScreenCast session. Make sure you have a desktop portal running with support for the ScreenCast interface (usually only available on Wayland).\n");
+ fprintf(stderr, "gsr error: gsr_dbus_screencast_create_session: failed to setup ScreenCast session. Make sure you have a desktop portal running with support for the ScreenCast interface (usually only available on Wayland) and that the desktop portal matches the Wayland compositor you are running.\n");
return false;
}
@@ -600,6 +600,7 @@ bool gsr_dbus_screencast_create_session(gsr_dbus *self, char **session_handle) {
}
if(!gsr_dbus_response_status_ok(&resp_args)) {
+ fprintf(stderr, "gsr error: gsr_dbus_screencast_create_session: failed to setup ScreenCast session. Make sure you have a desktop portal running with support for the ScreenCast interface (usually only available on Wayland) and that the desktop portal matches the Wayland compositor you are running.\n");
dbus_message_unref(msg);
return false;
}
diff --git a/src/pipewire.c b/src/pipewire.c
index 41139f5..981d2bc 100644
--- a/src/pipewire.c
+++ b/src/pipewire.c
@@ -420,9 +420,6 @@ static bool gsr_pipewire_setup_stream(gsr_pipewire *self) {
}
pw_stream_add_listener(self->stream, &self->stream_listener, &stream_events, self);
- self->video_info.fps_num = 60;
- self->video_info.fps_den = 1;
-
if(!gsr_pipewire_build_format_params(self, &pod_builder, params)) {
pw_thread_loop_unlock(self->thread_loop);
fprintf(stderr, "gsr error: gsr_pipewire_setup_stream: failed to build format params\n");