Commit beb34839 authored by Aleix Pol's avatar Aleix Pol 🎨
Browse files

Support SPA_VIDEO_FORMAT_BGRA

It's already supported by spa_pixel_format_to_obs_pixel_format, we are
just not listing it.
parent 8430c468
......@@ -606,12 +606,13 @@ play_pipewire_stream (obs_pipewire_data *xdg)
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_CHOICE_ENUM_Id (5,
SPA_FORMAT_VIDEO_format, SPA_POD_CHOICE_ENUM_Id (6,
SPA_VIDEO_FORMAT_RGB,
SPA_VIDEO_FORMAT_RGB,
SPA_VIDEO_FORMAT_RGBA,
SPA_VIDEO_FORMAT_RGBx,
SPA_VIDEO_FORMAT_BGRx),
SPA_VIDEO_FORMAT_BGRx,
SPA_VIDEO_FORMAT_BGRA),
SPA_FORMAT_VIDEO_size, SPA_POD_CHOICE_RANGE_Rectangle (&SPA_RECTANGLE (320, 240),
&SPA_RECTANGLE (1, 1),
&SPA_RECTANGLE (4096, 4096)),
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment