diff options
author | Manish Sogi <manish.sogi@samsung.com> | 2015-11-17 13:02:05 +0530 |
---|---|---|
committer | Manish Sogi <manish.sogi@samsung.com> | 2015-11-17 13:02:05 +0530 |
commit | 172cf9151ca3e1957d1033526ebc98680f1c9003 (patch) | |
tree | c2aa5cdb5686bf4f84e1447edb804f2118fd114f | |
parent | d90e458ccfdce23b9727f60a4369c781c00fcc06 (diff) | |
download | camera-172cf9151ca3e1957d1033526ebc98680f1c9003.tar.gz camera-172cf9151ca3e1957d1033526ebc98680f1c9003.tar.bz2 camera-172cf9151ca3e1957d1033526ebc98680f1c9003.zip |
Release version 0.2.23
1. Set interrupted callback for testing in multimedia_camera_testsuite.
Change-Id: Ic8f9fdeb158b39145dbcb244501ec5ac0da22ba5
Signed-off-by: Manish Sogi <manish.sogi@samsung.com>
-rw-r--r-- | packaging/capi-media-camera.spec | 2 | ||||
-rw-r--r-- | test/multimedia_camera_test.c | 5 |
2 files changed, 6 insertions, 1 deletions
diff --git a/packaging/capi-media-camera.spec b/packaging/capi-media-camera.spec index 933a37e..ae64718 100644 --- a/packaging/capi-media-camera.spec +++ b/packaging/capi-media-camera.spec @@ -3,7 +3,7 @@ Name: capi-media-camera Summary: A Camera API -Version: 0.2.22 +Version: 0.2.23 Release: 0 Group: Multimedia/API License: Apache-2.0 diff --git a/test/multimedia_camera_test.c b/test/multimedia_camera_test.c index 69070b9..fc956cd 100644 --- a/test/multimedia_camera_test.c +++ b/test/multimedia_camera_test.c @@ -441,6 +441,10 @@ void _camera_state_changed_cb(camera_state_e previous, camera_state_e current,bo printf("camera state changed %d -> %d\n", previous , current); } +void _camera_interrupted_cb(camera_policy_e policy, camera_state_e previous, camera_state_e current, void *user_data){ + printf("camera interrupted callback called %d\n", policy); +} + bool preview_resolution_cb(int width, int height, void *user_data) { resolution_stack *data = (resolution_stack*)user_data; @@ -1425,6 +1429,7 @@ static gboolean mode_change() camera_print_state = CAMERA_STATE_CREATED; camera_set_state_changed_cb(hcamcorder->camera, _camera_state_changed_cb, NULL); + camera_set_interrupted_cb(hcamcorder->camera, _camera_interrupted_cb, NULL); camera_set_display_mode(hcamcorder->camera,0 ); //MM_DISPLAY_METHOD_LETTER_BOX camera_set_display(hcamcorder->camera, CAMERA_DISPLAY_TYPE_OVERLAY, GET_DISPLAY(eo)); |