[go: nahoru, domu]

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
1 file changed