roc-streaming / roc-toolkit

Real-time audio streaming over the network.
https://roc-streaming.org
Mozilla Public License 2.0
1.02k stars 204 forks source link

GH-303 Avoid pointer usage #590

Closed dshil closed 9 months ago

dshil commented 9 months ago

303

gavv commented 9 months ago

Actually we can make dst_writer_ field a reference and remove panic and check.

Earlier destination writer was set dynamically, and hence it was a pointer and NULL was allowed.

Later I moved it's to constructor, but forgot to change pointer to reference.