From 38ec7c22fb6040606094baa69fcac0c337ca99a7 Mon Sep 17 00:00:00 2001 From: loki Date: Sun, 23 Feb 2020 20:48:19 +0100 Subject: [PATCH] Fix error scaling img when getting a timeout instead of an img --- sunshine/video.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sunshine/video.cpp b/sunshine/video.cpp index 862ea000..72738c66 100644 --- a/sunshine/video.cpp +++ b/sunshine/video.cpp @@ -78,8 +78,8 @@ int capture_display(platf::img_t *img, std::unique_ptr &disp) } case platf::capture_e::error: return -1; - // Prevent warning during compilation case platf::capture_e::timeout: + return 0; case platf::capture_e::ok: return 1; default: