Probe supported codecs only once
This commit is contained in:
@@ -1262,8 +1262,6 @@ void scenes::lobby::on_focused()
|
||||
vps,
|
||||
image_cache);
|
||||
|
||||
supported_codecs = wivrn::decoder::supported_codecs();
|
||||
|
||||
auto t = std::chrono::system_clock::to_time_t(std::chrono::system_clock::now());
|
||||
auto tm = std::localtime(&t);
|
||||
switch (tm->tm_mon)
|
||||
|
||||
@@ -132,8 +132,6 @@ class lobby : public scene_impl<lobby>
|
||||
tab last_current_tab = tab::server_list;
|
||||
int optional_feature_index = 0; // Which step of the first run screen are we in
|
||||
|
||||
std::vector<wivrn::video_codec> supported_codecs;
|
||||
|
||||
ImTextureID about_picture;
|
||||
|
||||
virtual_keyboard keyboard;
|
||||
|
||||
@@ -747,7 +747,7 @@ void scenes::lobby::gui_settings()
|
||||
config.codec = std::nullopt;
|
||||
config.save();
|
||||
}
|
||||
for (auto codec: supported_codecs)
|
||||
for (auto codec: decoder::supported_codecs())
|
||||
{
|
||||
// don't show raw in GUI
|
||||
if (codec == wivrn::raw)
|
||||
|
||||
Reference in New Issue
Block a user