Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Plasma
KWin
Commits
0ddc3607
Commit
0ddc3607
authored
Dec 04, 2020
by
Jan Grulich
Browse files
Screencast: support BGRx format for backwards compatibility with WebRTC
parent
94201cba
Changes
1
Hide whitespace changes
Inline
Side-by-side
plugins/screencast/pipewirestream.cpp
View file @
0ddc3607
...
...
@@ -245,7 +245,8 @@ bool PipeWireStream::createStream()
SPA_TYPE_OBJECT_Format
,
SPA_PARAM_EnumFormat
,
SPA_FORMAT_mediaType
,
SPA_POD_Id
(
SPA_MEDIA_TYPE_video
),
SPA_FORMAT_mediaSubtype
,
SPA_POD_Id
(
SPA_MEDIA_SUBTYPE_raw
),
SPA_FORMAT_VIDEO_format
,
SPA_POD_Id
(
format
),
SPA_FORMAT_VIDEO_format
,
SPA_POD_CHOICE_ENUM_Id
(
format
==
SPA_VIDEO_FORMAT_BGRA
?
3
:
2
,
format
,
format
,
format
==
SPA_VIDEO_FORMAT_BGRA
?
SPA_VIDEO_FORMAT_BGRx
:
nullptr
),
SPA_FORMAT_VIDEO_size
,
SPA_POD_Rectangle
(
&
resolution
),
SPA_FORMAT_VIDEO_framerate
,
SPA_POD_Fraction
(
&
defaultFramerate
),
SPA_FORMAT_VIDEO_maxFramerate
,
SPA_POD_CHOICE_RANGE_Fraction
(
&
maxFramerate
,
&
minFramerate
,
&
maxFramerate
));
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment