mozilla / janus-plugin-sfu

Janus plugin to act as a kind of SFU for game networking data.
Mozilla Public License 2.0
135 stars 40 forks source link

Make PLUGIN static instead of const #69

Closed mqp closed 3 years ago

mqp commented 3 years ago

I think when I first wrote this I misunderstood how const works in Rust. const makes the compiler just do a compile-time substitution of the value into each of its references, so it was making a new temporary Plugin object every time it needed to create a plugin handle pointer to pass into Janus. static is what we actually want.