Stop and restart the camera automatically when app changes active state
Bug #1375163 reported by
Ugo Riboni
This bug affects 9 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Canonical System Image |
Fix Committed
|
High
|
Bill Filler | ||
qtubuntu-camera (Ubuntu) |
Fix Released
|
Undecided
|
Florian Boucault |
Bug Description
At the moment when an application that started the camera stops becoming active, the camera remains running and other applications can't use it.
The system should automatically detect when an app is being deactivate and stop the camera, as a minimum.
To be symmetric, when the app gets activated again, it should also restart it. However this might not be as simple since the camera might have been re-configured by other apps so if we want the process to be full automatic the state of the camera configuration should be saved and restored as well.
Related branches
lp://staging/~fboucault/qtubuntu-camera/unloaded_when_inactive
- Ugo Riboni (community): Approve
-
Diff: 629 lines (+198/-71)18 files modifiedsrc/aalcameracontrol.cpp (+1/-1)
src/aalcameraservice.cpp (+32/-2)
src/aalcameraservice.h (+7/-0)
src/aalvideodeviceselectorcontrol.cpp (+7/-1)
src/aalvideorenderercontrol.cpp (+62/-57)
src/aalvideorenderercontrol.h (+2/-3)
src/aalviewfindersettingscontrol.cpp (+7/-3)
unittests/aalcameracontrol/aalcameraservice.cpp (+9/-0)
unittests/aalcameraexposurecontrol/aalcameraservice.cpp (+9/-0)
unittests/aalcameraflashcontrol/aalcameraservice.cpp (+9/-0)
unittests/aalcamerafocuscontrol/aalcameraservice.cpp (+9/-0)
unittests/aalcamerazoomcontrol/aalcameraservice.cpp (+9/-0)
unittests/aalimagecapturecontrol/aalcameraservice.cpp (+9/-0)
unittests/aalimagecapturecontrol/aalvideorenderercontrol.cpp (+2/-2)
unittests/aalvideodeviceselectorcontrol/aalcameraservice.cpp (+9/-0)
unittests/aalviewfindersettingscontrol/aalcameraservice.cpp (+9/-0)
unittests/aalviewfindersettingscontrol/aalvideorenderercontrol.cpp (+2/-2)
unittests/stubs/aalcameraservice_stub.cpp (+4/-0)
Changed in canonical-devices-system-image: | |
assignee: | nobody → Bill Filler (bfiller) |
importance: | Undecided → High |
milestone: | none → backlog |
status: | New → Confirmed |
Changed in qtubuntu-camera (Ubuntu): | |
assignee: | nobody → Florian Boucault (fboucault) |
Changed in qtubuntu-camera (Ubuntu): | |
status: | Confirmed → In Progress |
Changed in canonical-devices-system-image: | |
status: | Confirmed → In Progress |
Changed in qtubuntu-camera (Ubuntu): | |
status: | In Progress → Fix Committed |
Changed in canonical-devices-system-image: | |
status: | In Progress → Fix Committed |
Changed in qtubuntu-camera (Ubuntu): | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
This can be reproduced by opening uTorch, leaving it open and then open the camera-app. The camera app will be broken.