Skip to content

Commit

Permalink
Fix spurious asserts in the unencrypted audio path with Sunshine
Browse files Browse the repository at this point in the history
  • Loading branch information
cgutman committed Feb 21, 2024
1 parent 046c231 commit ba1fc33
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/AudioStream.c
Original file line number Diff line number Diff line change
Expand Up @@ -226,8 +226,9 @@ static void decodeInputData(PQUEUED_AUDIO_PACKET packet) {
else {
// Opus header should stay constant for the entire stream.
// If it doesn't, it may indicate that the RtpAudioQueue
// incorrectly recovered a data shard.
LC_ASSERT_VT(((uint8_t*)(rtp + 1))[0] == opusHeaderByte);
// incorrectly recovered a data shard. Sunshine violates
// this for surround sound in some cases, so just ignore it.
LC_ASSERT_VT(((uint8_t*)(rtp + 1))[0] == opusHeaderByte || IS_SUNSHINE());
}
#endif

Expand Down

0 comments on commit ba1fc33

Please sign in to comment.