screencast: crudely allow metadata and ignore it

This commit is contained in:
vaxerski 2023-04-05 22:23:59 +01:00
parent e1f145d15d
commit 803c00db11
2 changed files with 3 additions and 3 deletions

View file

@ -117,7 +117,7 @@ int main(int argc, char *argv[]) {
.wl_display = wl_display, .wl_display = wl_display,
.pw_loop = pw_loop, .pw_loop = pw_loop,
.screencast_source_types = MONITOR, .screencast_source_types = MONITOR,
.screencast_cursor_modes = HIDDEN | EMBEDDED, .screencast_cursor_modes = HIDDEN | EMBEDDED | METADATA,
.screencast_version = XDP_CAST_PROTO_VER, .screencast_version = XDP_CAST_PROTO_VER,
.screenshot_version = XDP_SHOT_PROTO_VER, .screenshot_version = XDP_SHOT_PROTO_VER,
.config = &config, .config = &config,

View file

@ -325,8 +325,8 @@ static int method_screencast_select_sources(sd_bus_message *msg, void *data,
cursor_embedded = false; cursor_embedded = false;
} }
if (cursor_mode & METADATA) { if (cursor_mode & METADATA) {
logprint(ERROR, "dbus: unsupported cursor mode requested, cancelling"); logprint(ERROR, "dbus: unsupported cursor mode requested, ignoring");
goto error; // goto error;
} }
logprint(INFO, "dbus: option cursor_mode:%x", cursor_mode); logprint(INFO, "dbus: option cursor_mode:%x", cursor_mode);
} else { } else {