linux client: only show 10-bit if supported

This commit is contained in:
galister
2026-09-29 19:22:33 +02:00
committed by xytovl
parent 9062f082e5
commit e5923e155a
9 changed files with 106 additions and 28 deletions
+2 -2
View File
@@ -815,9 +815,9 @@ void on_headset_info_packet(const wivrn::from_headset::headset_info_packet & inf
{h264, "h264"},
{h265, "h265"},
{av1, "av1"}};
for (video_codec codec: info.supported_codecs)
for (const auto & capability: info.supported_codecs)
{
auto it = codec_names.find(codec);
auto it = codec_names.find(capability.codec);
if (it != codec_names.end())
codecs.push_back(it->second);
}