]> granicus.if.org Git - libvpx/commitdiff
Fix a bug in VP9Worker which leads to unit test hang.
authorhkuang <hkuang@google.com>
Sat, 28 Jun 2014 17:19:35 +0000 (10:19 -0700)
committerhkuang <hkuang@google.com>
Mon, 30 Jun 2014 17:45:50 +0000 (10:45 -0700)
This fixes the hang in VP9/InvalidFileTest.ReturnCode/3
due to worker->had_error has not been reset after getting
error.

Change-Id: Ia3608225094758a2bd88f6ae4dd9dfd93bbaad27

vp9/decoder/vp9_thread.c

index 5d31d3d98b08dfa983f87646a6ca6eb9697cf2a8..4ea9c17d8c9507d61e71b1c084a2019a6bd7f3be 100644 (file)
@@ -107,6 +107,7 @@ int vp9_worker_reset(VP9Worker* const worker) {
 }
 
 void vp9_worker_execute(VP9Worker* const worker) {
+  worker->had_error = 0;
   if (worker->hook != NULL) {
     worker->had_error |= !worker->hook(worker->data1, worker->data2);
   }