Finish new LaunchSpec

This commit is contained in:
Florian Märkl 2020-12-22 14:28:36 +01:00
commit e2d1c11064
No known key found for this signature in database
GPG key ID: 125BC8A5A6A1E857
3 changed files with 26 additions and 9 deletions

View file

@ -204,11 +204,12 @@ void Settings::SetAudioBufferSize(unsigned int size)
ChiakiConnectVideoProfile Settings::GetVideoProfile()
{
ChiakiConnectVideoProfile profile;
ChiakiConnectVideoProfile profile = {};
chiaki_connect_video_profile_preset(&profile, GetResolution(), GetFPS());
unsigned int bitrate = GetBitrate();
if(bitrate)
profile.bitrate = bitrate;
profile.codec = CHIAKI_CODEC_H264; // TODO: add a setting
return profile;
}