summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHyuntae, Kim <ht1211.kim@samsung.com>2016-05-30 18:16:03 +0900
committerhyuntae kim <ht1211.kim@samsung.com>2016-05-30 02:18:43 -0700
commitaeef5be842882cdd739aef7e5ec83a11fa7c8968 (patch)
tree0c0fecc1b7e9307c0cbcf932f3f3d4f907c2d61b
parentce5aa9a4aa1e3099c90c103d9a9dc4085f2bfda0 (diff)
downloadcamera-aeef5be842882cdd739aef7e5ec83a11fa7c8968.tar.gz
camera-aeef5be842882cdd739aef7e5ec83a11fa7c8968.tar.bz2
camera-aeef5be842882cdd739aef7e5ec83a11fa7c8968.zip
[capi-media-camera] bug fix for filename for testsuite
Change-Id: Ia6fa79406d6449441929187a84df54a714d9e51b
-rw-r--r--test/camera_test.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/test/camera_test.c b/test/camera_test.c
index c9ec498..95fb235 100644
--- a/test/camera_test.c
+++ b/test/camera_test.c
@@ -630,7 +630,7 @@ void capturing_cb(camera_image_data_s* image, camera_image_data_s* postview, cam
{
char m_filename[CAPTURE_FILENAME_LEN];
- if (hcamcorder->isMultishot)
+ if (!hcamcorder->isMultishot)
snprintf(m_filename, CAPTURE_FILENAME_LEN, "/opt/usr/media/Stillshot%03d.jpg", hcamcorder->multishot_count++);
else
snprintf(m_filename, CAPTURE_FILENAME_LEN, "/opt/usr/media/Multishot%03d.jpg", hcamcorder->stillshot_count++);
@@ -741,6 +741,7 @@ static void main_menu(gchar buf)
if (hcamcorder->mode == MODE_VIDEO_CAPTURE) {
switch (buf) {
case '1': /* Capture */
+ hcamcorder->isMultishot = FALSE;
camera_get_state(hcamcorder->camera, &capi_state);
camera_attr_set_image_quality(hcamcorder->camera, 100);
camera_set_capture_format(hcamcorder->camera, CAMERA_PIXEL_FORMAT_JPEG);