More screenshot tweaks, send blob to remote

Signed-off-by: falkTX <falktx@falktx.com>
This commit is contained in:
falkTX 2022-02-10 02:32:43 +00:00
parent be0ae63541
commit a2b917c163
No known key found for this signature in database
GPG key ID: CDBAA37ABC74FBA0
3 changed files with 63 additions and 18 deletions

View file

@ -34,9 +34,11 @@
# undef DEBUG
#endif
#if defined(HAVE_LIBLO) && defined(HEADLESS)
# include <lo/lo.h>
# include "extra/Thread.hpp"
#ifdef HAVE_LIBLO
# ifdef HEADLESS
# include <lo/lo.h>
# include "extra/Thread.hpp"
# endif
# include "CardinalCommon.hpp"
#endif
@ -815,7 +817,7 @@ protected:
if (std::strcmp(key, "screenshot") == 0)
{
fStateScreenshot = value;
#if defined(HAVE_LIBLO) && defined(HEADLESS)
#if defined(HAVE_LIBLO) && !defined(HEADLESS)
patchUtils::sendScreenshotToRemote(value);
#endif
return;