ultravideo / uvgRTP

An open-source library for RTP/SRTP media delivery
BSD 2-Clause "Simplified" License
318 stars 90 forks source link

rtcp: Prevent double locking in generate_report #145

Closed wowaser closed 2 years ago

wowaser commented 2 years ago

There was a bug where if an error occurs in the generate_report() function the lock would not unlock and the next call would double lock and cause an exception

jrsnen commented 2 years ago

Yes, you are right that at least in case of errors, the lock would not be released. Thanks!