Skip to content

Commit

Permalink
pipewire: Fix truncation of SPA_FORMAT_VIDEO_gamescope_focus_appid
Browse files Browse the repository at this point in the history
No longer needed with pipewire as of a63aa6329bf3b9a7c6a13a511617472980e9e238
  • Loading branch information
misyltoad committed Sep 10, 2024
1 parent 6eaee77 commit 1bd5bed
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/pipewire.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ static void build_format_params(struct spa_pod_builder *builder, spa_video_forma
SPA_FORMAT_VIDEO_size, SPA_POD_Rectangle(&size),
SPA_FORMAT_VIDEO_framerate, SPA_POD_Fraction(&framerate),
SPA_FORMAT_VIDEO_requested_size, SPA_POD_CHOICE_RANGE_Rectangle( &min_requested_size, &min_requested_size, &max_requested_size ),
SPA_FORMAT_VIDEO_gamescope_focus_appid, SPA_POD_CHOICE_RANGE_Long( 0ll, 0ll, INT32_MAX ),
SPA_FORMAT_VIDEO_gamescope_focus_appid, SPA_POD_CHOICE_RANGE_Long( 0ll, INT64_MIN, INT64_MAX ),
0);
if (format == SPA_VIDEO_FORMAT_NV12) {
spa_pod_builder_add(builder,
Expand Down Expand Up @@ -134,7 +134,7 @@ static void build_format_params(struct spa_pod_builder *builder, spa_video_forma
SPA_FORMAT_VIDEO_size, SPA_POD_Rectangle(&size),
SPA_FORMAT_VIDEO_framerate, SPA_POD_Fraction(&framerate),
SPA_FORMAT_VIDEO_requested_size, SPA_POD_CHOICE_RANGE_Rectangle( &min_requested_size, &min_requested_size, &max_requested_size ),
SPA_FORMAT_VIDEO_gamescope_focus_appid, SPA_POD_CHOICE_RANGE_Long( 0ll, 0ll, INT32_MAX ),
SPA_FORMAT_VIDEO_gamescope_focus_appid, SPA_POD_CHOICE_RANGE_Long( 0ll, INT64_MIN, INT64_MAX ),
0);
if (format == SPA_VIDEO_FORMAT_NV12) {
spa_pod_builder_add(builder,
Expand Down

0 comments on commit 1bd5bed

Please sign in to comment.