diff options
author | James Dong <jdong@google.com> | 2009-04-23 14:07:23 -0700 |
---|---|---|
committer | James Dong <jdong@google.com> | 2009-04-23 14:07:23 -0700 |
commit | f1a5314076248a352915ae1a987725ae76cc8a22 (patch) | |
tree | ce596b09ec5c09f07123be99ec05f2cc3eec9163 /include/ui | |
parent | 7f9857743dd001e89b8103bf7ecf2dfa3f65b996 (diff) | |
download | frameworks_native-f1a5314076248a352915ae1a987725ae76cc8a22.zip frameworks_native-f1a5314076248a352915ae1a987725ae76cc8a22.tar.gz frameworks_native-f1a5314076248a352915ae1a987725ae76cc8a22.tar.bz2 |
Fix a media server crash (bug 1807910): part one
Add a factory method that creates a Camera object from a remote client
Next:
The changes in authordriver.cpp and android_camera_input.cpp will come.
and the constructor for Camera object will be removed.
Diffstat (limited to 'include/ui')
-rw-r--r-- | include/ui/Camera.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/ui/Camera.h b/include/ui/Camera.h index e593fea..12fa20f 100644 --- a/include/ui/Camera.h +++ b/include/ui/Camera.h @@ -78,8 +78,8 @@ class Camera : public BnCameraClient, public IBinder::DeathRecipient { public: // construct a camera client from an existing remote - Camera(const sp<ICamera>& camera); - + Camera(const sp<ICamera>& camera); // to be removed + static sp<Camera> create(const sp<ICamera>& camera); static sp<Camera> connect(); ~Camera(); void init(); |