Why do APIs in stream_decoder.c not have any mutex protection?
I use APIs to decode FLAC stream in two different tasks, one is a continuous routine to push raw data into the process API, the other is external I/O routine to invoke init or delete APIs when I switch to another stream. The program always crashes in the libFLAC in switch operation and later on I realize there's no mutex in the APIs of the libFLAC when I download the source with version 1.3.0. Therefore I have to make some effort to write my own mutex for this issue.
In my option a stable & strong library should have fundamental synchronization protection mechanism in APIs especially in some external I/O routine application. Would you please to realize it?