OSDN Git Service

Concurrency fix to CameraSource.
authorEino-Ville Talvala <etalvala@google.com>
Tue, 26 Jul 2011 17:05:53 +0000 (10:05 -0700)
committerEino-Ville Talvala <etalvala@google.com>
Tue, 26 Jul 2011 17:12:35 +0000 (10:12 -0700)
commite23bf25c468aec0e8a12746c56edcf6a8ff68aed
tree30b119f10a684edce03cd8455eccf3737c319740
parent67115781a7bd030e6c7f5bb6dc84828b68f10e86
Concurrency fix to CameraSource.

Don't hold a lock on the whole object while waiting for new frames.
Could have potentially deadlocked the filter if the UI thread
attempted to call get/setCameraParameters while filter was waiting for
a new frame.

Bug-Id: 5075306

Change-Id: I12391ff3247c64a2c6a303bfc9f542e1e80d2c24
mca/filterpacks/videosrc/java/CameraSource.java