commit | dae8ad6ac0a7c124d7c1a13af63028830435b1e1 | [log] [tgz] |
---|---|---|
author | Vinay Kalia <vkalia@codeaurora.org> | Fri Apr 26 20:42:10 2013 -0700 |
committer | Vinay Kalia <vkalia@codeaurora.org> | Fri Apr 26 21:47:31 2013 -0700 |
tree | 94ed64a07c15f5bfd433a5bd495d532825a619d7 | |
parent | 1ffcce871f503986ac7237a31144e72a1dcdbcd5 [diff] |
mm-video: vdec: Fix for blocking pthread_join If a file descriptor being monitored by poll() is closed in another thread, the result is unspecified. So, poll() might not exit on closing the fd. This change fixes the issue by always calling stop command before closing the fd. On receipt of stop done, poll thread exits and then fd can be closed. Change-Id: I9e258e90c2c8687659aeb8616778fa1ff9fc8436 CRs-fixed: 478727