Could also be a race condition. At first sight access to m_encoder is not thread-safe, i.e. the pointer could be reset between checking and dereferencing it.
I don't see any clear thread boundaries in this object. Probably much more bugs than only this one.
Could also be a race condition. At first sight access to m_encoder is not thread-safe, i.e. the pointer could be reset between checking and dereferencing it.
I don't see any clear thread boundaries in this object. Probably much more bugs than only this one.