From 8f88d1b7c44db466be0d3da078b217c9c2ab0953 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20Lepin?= Date: Fri, 26 Apr 2019 14:05:12 +0200 Subject: [PATCH] request(GetSourceImage): use PNG --- src/WSRequestHandler_Sources.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/WSRequestHandler_Sources.cpp b/src/WSRequestHandler_Sources.cpp index 07d78d81..0b334a66 100644 --- a/src/WSRequestHandler_Sources.cpp +++ b/src/WSRequestHandler_Sources.cpp @@ -1398,7 +1398,7 @@ HandlerResponse WSRequestHandler::HandleGetSourceImage(WSRequestHandler* req) { QByteArray encodedImgBytes; QBuffer buffer(&encodedImgBytes); buffer.open(QBuffer::WriteOnly); - sourceImage.save(&buffer, "WEBP", 50); + sourceImage.save(&buffer, "PNG", 50); buffer.close(); QString imgBase64(encodedImgBytes.toBase64()); @@ -1406,6 +1406,6 @@ HandlerResponse WSRequestHandler::HandleGetSourceImage(WSRequestHandler* req) { OBSDataAutoRelease response = obs_data_create(); obs_data_set_string(response, "sourceName", obs_source_get_name(source)); - obs_data_set_string(response, "img", imgBase64.toUtf8().constData()); + obs_data_set_string(response, "img", imgBase64.toUtf8()); return req->SendOKResponse(response); }