1) avoid crash for unrecognized audio stream, 2)free the mutex and con objects