0
0
mirror of https://github.com/obsproject/obs-studio.git synced 2024-09-20 04:42:18 +02:00

UI: Increase YouTube API timeout

The OBS client side timeout for the YouTube API is too short. New
changes proposed to the YouTube API will cause this to fail for
creating a broadcast. Increase to a minimum of 60.
This commit is contained in:
joelgerard 2023-08-30 08:35:16 -07:00 committed by Ryan Foster
parent 112adb0a73
commit 83c4f5383e

View File

@ -90,7 +90,7 @@ bool YoutubeApiWrappers::TryInsertCommand(const char *url,
std::string output;
std::string error;
// Increase timeout by the time it takes to transfer `data_size` at 1 Mbps
int timeout = 5 + data_size / 125000;
int timeout = 60 + data_size / 125000;
bool success = GetRemoteFile(url, output, error, &httpStatusCode,
content_type, request_type, data,
{"Authorization: Bearer " + token},