From fa6357737290b9e5957e2da9b3a112fec241df11 Mon Sep 17 00:00:00 2001 From: ywan171 Date: Fri, 6 Sep 2013 09:53:26 +0800 Subject: 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 Reviewed-on: http://android.intel.com:8080/130318 Reviewed-by: Zhou, ChuX Reviewed-by: Feng, Wei Reviewed-by: Liang, Dan Reviewed-by: Chen, Tianmi Reviewed-by: Shi, PingX Tested-by: Shi, PingX Reviewed-by: cactus Tested-by: cactus --- utils/src/workqueue.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'utils/src') 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(); } -- cgit v1.2.3