-
Notifications
You must be signed in to change notification settings - Fork 39
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[droidcamsrc] call droid_media_camera_take_picture from another thread
take_picture call in HAL sometimes need to read information from preview frames for e.g. auto exposure when using flash. If the calling thread also handles pulling preview frames, this will create a deadlock. To prevent this, I've moved the actual droid_media_camera_take_picture() call to a function that will be called in a background thread. The GstTaskPool is used to execute the function in the glib's thread pool, so that the new thread doesn't have to be created every time. This fixed taking a picture with the flash on on Fairphone 2 with Halium 7.1-based port and Ubuntu Touch.
- Loading branch information
1 parent
95a19dc
commit c637485
Showing
2 changed files
with
59 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters