diff options
author | ywan171 <yi.a.wang@intel.com> | 2013-09-06 09:53:26 +0800 |
---|---|---|
committer | Patrick Tjin <pattjin@google.com> | 2014-07-21 22:03:41 -0700 |
commit | fa6357737290b9e5957e2da9b3a112fec241df11 (patch) | |
tree | 30fa9d89055b44df7db0fb6bea25b15a4a0a9ff1 /utils | |
parent | e8ef7cfbad3a42b41edabbdc4ed258ce331a00a0 (diff) | |
download | wrs_omxil_core-fa6357737290b9e5957e2da9b3a112fec241df11.tar.gz |
wrs_core: reset the stop flag if the decoder thread restarts from stop state
BZ: 134837
reset the stop flag if the decoder thread restarts from stop state to fix cts MediaCodec
bug.
Change-Id: Ic8f22cb6eee576e4afa61197cbc390834ee7eb1b
Signed-off-by: ywan171 <yi.a.wang@intel.com>
Reviewed-on: http://android.intel.com:8080/130318
Reviewed-by: Zhou, ChuX <chux.zhou@intel.com>
Reviewed-by: Feng, Wei <wei.feng@intel.com>
Reviewed-by: Liang, Dan <dan.liang@intel.com>
Reviewed-by: Chen, Tianmi <tianmi.chen@intel.com>
Reviewed-by: Shi, PingX <pingx.shi@intel.com>
Tested-by: Shi, PingX <pingx.shi@intel.com>
Reviewed-by: cactus <cactus@intel.com>
Tested-by: cactus <cactus@intel.com>
Diffstat (limited to 'utils')
-rw-r--r-- | utils/src/workqueue.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/utils/src/workqueue.cpp b/utils/src/workqueue.cpp index 4b52788..a75b5ce 100644 --- a/utils/src/workqueue.cpp +++ b/utils/src/workqueue.cpp @@ -50,6 +50,9 @@ int WorkQueue::StartWork(bool executing) { this->executing = executing; + pthread_mutex_lock(&wlock); + stop = false; + pthread_mutex_unlock(&wlock); return Start(); } |