mirror of
https://github.com/Palakis/obs-websocket.git
synced 2024-08-30 18:12:16 +00:00
request(GetSourceImage): fix mime type
This commit is contained in:
parent
ab73d61178
commit
8305d907e3
@ -1403,7 +1403,7 @@ HandlerResponse WSRequestHandler::HandleGetSourceImage(WSRequestHandler* req) {
|
||||
buffer.close();
|
||||
|
||||
QString imgBase64(encodedImgBytes.toBase64());
|
||||
imgBase64.prepend("data:image/webp;base64,");
|
||||
imgBase64.prepend("data:image/png;base64,");
|
||||
|
||||
OBSDataAutoRelease response = obs_data_create();
|
||||
obs_data_set_string(response, "sourceName", obs_source_get_name(source));
|
||||
|
Loading…
x
Reference in New Issue
Block a user