Fix high-quality surround sound breaking audio when streaming over the Internet or IPv6

This commit is contained in:
Cameron Gutman 2019-08-04 15:05:40 -07:00
commit a9780361a3
5 changed files with 14 additions and 1 deletions

View file

@ -566,6 +566,15 @@ int performRtspHandshake(void) {
NegotiatedVideoFormat = VIDEO_FORMAT_H264;
}
// Check if high bitrate surround sound is available before attempting to request it.
// TODO: Parse these surround-params so we can get rid of our hardcoded Opus mappings
if (strstr(response.payload, "surround-params=660")) {
HighQualitySurroundSupported = 1;
}
else {
HighQualitySurroundSupported = 0;
}
freeMessage(&response);
}