X-Git-Url: https://git.sesse.net/?p=nageru;a=blobdiff_plain;f=nageru%2Ftheme.h;h=34a8d29fffb141475f5705242b2d01898fa7b74a;hp=794542525e9e84f60f65679b63cab8d6ae85b469;hb=9f5622b1cb36a07b5b717ab5c4cbd938a550c7c3;hpb=b7398dd7960ddf07f03b9a9ebc669d29141c09d0 diff --git a/nageru/theme.h b/nageru/theme.h index 7945425..34a8d29 100644 --- a/nageru/theme.h +++ b/nageru/theme.h @@ -191,8 +191,9 @@ private: lua_State *L; // Protected by . const InputState *input_state = nullptr; // Protected by . Only set temporarily, during chain setup. movit::ResourcePool *resource_pool; - int num_channels; + int num_channels = -1; unsigned num_cards; + bool startup_finished = false; std::mutex map_m; std::map signal_to_card_mapping; // Protected by . @@ -223,6 +224,7 @@ private: friend class Scene; friend int ThemeMenu_set(lua_State *L); friend int Nageru_set_channel_name(lua_State *L); + friend int Nageru_set_num_channels(lua_State *L); }; // LiveInputWrapper is a facade on top of an YCbCrInput, exposed to