Compare commits

..

2 Commits

+4 -4
View File
@@ -440,9 +440,9 @@ void Render::OnReceiveDataBufferCb(const char* data, size_t size,
const double bps =
(static_cast<double>(delta_bytes) * 8.0) / delta_seconds;
if (bps > 0.0) {
const double capped = (std::min)(
bps,
static_cast<double>((std::numeric_limits<uint32_t>::max)()));
const double capped =
(std::min)(bps, static_cast<double>(
(std::numeric_limits<uint32_t>::max)()));
estimated_rate_bps = static_cast<uint32_t>(capped);
}
}
@@ -734,7 +734,7 @@ void Render::OnConnectionStatusCb(ConnectionStatus status, const char* user_id,
SDL_Event event;
event.type = render->STREAM_REFRESH_EVENT;
event.user.data1 = props;
event.user.data1 = props.get();
SDL_PushEvent(&event);
break;