Merge pull request #393 from talk2MeGooseman/4.x-current

Switch from using caption_text1 to caption_text2
This commit is contained in:
Stéphane Lepin 2019-11-29 12:08:19 +01:00 committed by GitHub
commit 71ad8930d8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -307,7 +307,8 @@ HandlerResponse WSRequestHandler::HandleSendCaptions(WSRequestHandler* req) {
OBSOutputAutoRelease output = obs_frontend_get_streaming_output();
if (output) {
const char* caption = obs_data_get_string(req->data, "text");
obs_output_output_caption_text1(output, caption);
// Send caption text with immediately (0 second delay)
obs_output_output_caption_text2(output, caption, 0.0);
}
return req->SendOKResponse();