audio/msm8660: Fix for crash in Voip conference call
-Crash is observed in voip conference call using third party voip app.
-Directoutput is used across different voip sessions in openOutputStream
if already opened. Irrespective of this, in closeOutputStream
directoutput is deleted and if the same handle is accessed by another
voip session it leads to crash.
-Introduce reference count for directoutput and increment it for
each session. Similarly delete output only if reference count is zero
and no other session is accessing it.
2 files changed