mirror of
https://github.com/outbackdingo/UltraGrid.git
synced 2026-03-20 20:40:15 +00:00
vdisp/sdl3 probe: do output codec_t multiple times
It will actually cause problems to callers those count the occurences like vdisp/aggregate.
This commit is contained in:
@@ -605,9 +605,14 @@ get_ug_to_sdl_format(const struct fmt_data *supp_fmts, codec_t ug_codec)
|
||||
static int
|
||||
get_supported_pfs(const struct fmt_data *supp_fmts, codec_t *codecs)
|
||||
{
|
||||
bool codec_set[VC_COUNT]= {};
|
||||
int i = 0;
|
||||
for (; supp_fmts[i].ug_codec != VC_NONE; ++i) {
|
||||
if (codec_set[supp_fmts[i].ug_codec]) {
|
||||
continue;
|
||||
}
|
||||
codecs[i] = supp_fmts[i].ug_codec;
|
||||
codec_set[supp_fmts[i].ug_codec] = true;
|
||||
}
|
||||
return i;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user