examples: handle I420 and IYUV formats

They are represented in PipeWire with 3 planes now.
This commit is contained in:
Wim Taymans 2025-04-16 11:00:28 +02:00
parent 7d6e2a6417
commit 41665e6bb8
2 changed files with 19 additions and 11 deletions

View file

@ -151,7 +151,7 @@ static inline struct spa_pod *sdl_build_formats(SDL_RendererInfo *info, struct s
if (id == 0)
continue;
if (c++ == 0)
spa_pod_builder_id(b, id);
spa_pod_builder_id(b, SPA_VIDEO_FORMAT_UNKNOWN);
spa_pod_builder_id(b, id);
}
/* then all the other ones SDL can convert from/to */