]> granicus.if.org Git - libvpx/commitdiff
vp9_thread_test: fix 'had_error' assignment
authorJames Zern <jzern@google.com>
Thu, 20 Nov 2014 22:16:28 +0000 (14:16 -0800)
committerJames Zern <jzern@google.com>
Thu, 20 Nov 2014 22:16:28 +0000 (14:16 -0800)
worker hooks return false on error, fix the assignment in Execute() used
in the TestSerialInterface test

Change-Id: I93c2e45f270330ae6d35a3a303411c4ee0f31337

test/vp9_thread_test.cc

index cc354765af6673c58f80bb1b9a675f55f8df34d4..902a6fc35db42406286a9bf8f682ebd1be9802bf 100644 (file)
@@ -207,7 +207,7 @@ int Reset(VP9Worker *const /*worker*/) { return 1; }
 int Sync(VP9Worker *const worker) { return !worker->had_error; }
 
 void Execute(VP9Worker *const worker) {
-  worker->had_error |= worker->hook(worker->data1, worker->data2);
+  worker->had_error |= !worker->hook(worker->data1, worker->data2);
 }
 
 void Launch(VP9Worker *const worker) { Execute(worker); }