The frontend user release handler can be called when tdm_buffer_unref_backend
is called. We have to unlock/lock the mutex before/after calling
tdm_buffer_unref_backend function.
Change-Id: Idd97a9286c9d7083d5a77ec23595686a81b61d8e
tdm_buffer_remove_release_handler_internal(b->src);
tdm_buffer_remove_release_handler_internal(b->dst);
+ _pthread_mutex_unlock(&private_display->lock);
tdm_buffer_unref_backend(b->src);
tdm_buffer_unref_backend(b->dst);
+ _pthread_mutex_lock(&private_display->lock);
LIST_DEL(&b->link);
}
}