fix sdl camera destruction order
Some checks failed
ContinuousDelivery / linux-ubuntu (push) Has been cancelled
ContinuousDelivery / android (map[ndk_abi:arm64-v8a vcpkg_toolkit:arm64-android-23]) (push) Has been cancelled
ContinuousDelivery / android (map[ndk_abi:armeabi-v7a vcpkg_toolkit:arm-neon-android-23]) (push) Has been cancelled
ContinuousDelivery / android (map[ndk_abi:x86_64 vcpkg_toolkit:x64-android-23]) (push) Has been cancelled
ContinuousDelivery / windows (push) Has been cancelled
ContinuousDelivery / windows-asan (push) Has been cancelled
ContinuousIntegration / linux (push) Has been cancelled
ContinuousIntegration / android (map[ndk_abi:arm64-v8a vcpkg_toolkit:arm64-android-23]) (push) Has been cancelled
ContinuousIntegration / android (map[ndk_abi:armeabi-v7a vcpkg_toolkit:arm-neon-android-23]) (push) Has been cancelled
ContinuousIntegration / android (map[ndk_abi:x86_64 vcpkg_toolkit:x64-android-23]) (push) Has been cancelled
ContinuousIntegration / macos (push) Has been cancelled
ContinuousIntegration / windows (push) Has been cancelled
ContinuousDelivery / dumpsyms (push) Has been cancelled
ContinuousDelivery / release (push) Has been cancelled

This commit is contained in:
Green Sky 2025-04-04 14:33:05 +02:00
parent a800b82cff
commit 9b40c417a2
No known key found for this signature in database
GPG Key ID: DBE05085D874AB4A
2 changed files with 4 additions and 5 deletions

View File

@ -39,6 +39,7 @@ MainScreen::MainScreen(const SimpleConfigModel& conf_, SDL_Renderer* renderer_,
rmm(cs),
msnj{cs, os, {}, {}},
mts(rmm),
sdlvis(os),
sm(os),
tc(conf, save_path, save_password),
tel(tc, std::cout),
@ -69,8 +70,7 @@ MainScreen::MainScreen(const SimpleConfigModel& conf_, SDL_Renderer* renderer_,
tdch(tpi),
tnui(tpi),
smui(os, sm),
dvt(os, sm, sdlrtu),
sdlvis(os)
dvt(os, sm, sdlrtu)
{
tel.subscribeAll();

View File

@ -37,6 +37,7 @@
#include "./tox_dht_cap_histo.hpp"
#include "./tox_netprof_ui.hpp"
#include "./tox_friend_faux_offline_messaging.hpp"
#include "./frame_streams/sdl/sdl_video_input_service.hpp"
#include "./stream_manager_ui.hpp"
#include "./debug_video_tap.hpp"
@ -45,8 +46,6 @@
#include "./tox_av_voip_model.hpp"
#endif
#include "./frame_streams/sdl/sdl_video_input_service.hpp"
#include <string>
#include <iostream>
#include <chrono>
@ -67,6 +66,7 @@ struct MainScreen final : public Screen {
MessageSerializerNJ msnj;
MessageTimeSort mts;
SDLVideoInputService sdlvis; // sm ends the threads and closes the devices
StreamManager sm;
ToxClient tc;
@ -105,7 +105,6 @@ struct MainScreen final : public Screen {
ToxNetprofUI tnui;
StreamManagerUI smui;
DebugVideoTap dvt;
SDLVideoInputService sdlvis;
PluginManager pm; // last, so it gets destroyed first