From 413c3f52b855453d98d6e839663a3481fa58072d Mon Sep 17 00:00:00 2001 From: Chris Tallon Date: Sat, 18 Apr 2020 16:55:39 +0100 Subject: [PATCH] Fixes for Windows --- control.cc | 1 + osdwinvector.cc | 6 +++++- winmain.cc | 8 +------- 3 files changed, 7 insertions(+), 8 deletions(-) diff --git a/control.cc b/control.cc index b19993e..76fc49f 100644 --- a/control.cc +++ b/control.cc @@ -132,6 +132,7 @@ bool Control::init(bool tcrashed) FALLTHROUGH case 1: FALLTHROUGH + ; } return false; diff --git a/osdwinvector.cc b/osdwinvector.cc index dd48b6c..9839817 100644 --- a/osdwinvector.cc +++ b/osdwinvector.cc @@ -17,14 +17,18 @@ along with VOMP. If not, see . */ -#include + +// FIXME swap these two lines around #include "videowin.h" +#include + #include "surfacewin.h" #include "message.h" #include "messagequeue.h" #include "teletxt/txtfont.h" + #define OSD_BUFFER_WIDTH 1280 #define OSD_BUFFER_HEIGHT 720 diff --git a/winmain.cc b/winmain.cc index 1c91010..e8f692f 100644 --- a/winmain.cc +++ b/winmain.cc @@ -45,6 +45,7 @@ #include "osdwinvector.h" #endif #include "control.h" +#include "message.h" #include "messagequeue.h" void sighandler(int signalReceived); @@ -798,13 +799,6 @@ void shutdown(int code) logger->log("Core", Log::NOTICE, "Control module shut down"); } - if (vdr) - { - vdr->shutdown(); - delete vdr; - logger->log("Core", Log::NOTICE, "VDR module shut down"); - } - if (osd) { osd->shutdown(); -- 2.39.5