commit | 2155380747fa2d1e7c79b9835ddc512349f8a4af | [log] [tgz] |
---|---|---|
author | Zhongbo Shi <zhongbos@codeaurora.org> | Tue Mar 19 15:48:16 2019 +0800 |
committer | Gerrit - the friendly Code Review server <code-review@localhost> | Tue Sep 10 01:55:23 2019 -0700 |
tree | c1f9eff0391f8fb2e22359873e5c7ef35e491d5c | |
parent | a79e2390aabdd1858b7ec07388aa74e59af5e8da [diff] |
mm-video-v4l2: vdec: double-check the signalled variant As the mutext lock is released first in the pthread_cond_timedwait(), the signalled variant maybe changed by the main thread in some rare cases, meanwhile pthread_cond_timedwait() still returns time out. Double-check the signalled variant after pthread_cond_timedwait() so as to return 0 and to process the last cmd received during time out. Change-Id: I952e72bb37d554cb2ea8dd0ee74b43214bfce7de