summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
266de6a)
[Version] 0.10.177
[Profile] Common
[Issue Type] Bug fix
[Dependency module] N/A
Change-Id: I8cc80815e59fa8ed9f69da5df83e9ab073c12954
Signed-off-by: Jeongmo Yang <jm80.yang@samsung.com>
Name: libmm-camcorder
Summary: Camera and recorder library
Name: libmm-camcorder
Summary: Camera and recorder library
Release: 0
Group: Multimedia/Libraries
License: Apache-2.0
Release: 0
Group: Multimedia/Libraries
License: Apache-2.0
if (info->filesize > 0) {
break;
} else if (count == _MMCAMCORDER_RETRIAL_COUNT) {
if (info->filesize > 0) {
break;
} else if (count == _MMCAMCORDER_RETRIAL_COUNT) {
- _mmcam_dbg_err("Pause fail, wait 200 ms, but file size is %lu",
+ _mmcam_dbg_err("Pause fail, wait 200 ms, but file size is %"G_GUINT64_FORMAT,
info->filesize);
return MM_ERROR_CAMCORDER_INVALID_CONDITION;
} else {
info->filesize);
return MM_ERROR_CAMCORDER_INVALID_CONDITION;
} else {
- _mmcam_dbg_warn("Wait for enough audio frame, retry count[%d], file size is %lu",
+ _mmcam_dbg_warn("Wait for enough audio frame, retry count[%d], file size is %"G_GUINT64_FORMAT,
count, info->filesize);
}
usleep(_MMCAMCORDER_FRAME_WAIT_TIME);
count, info->filesize);
}
usleep(_MMCAMCORDER_FRAME_WAIT_TIME);
if (info->filesize > 0) {
break;
} else if (count == _MMCAMCORDER_RETRIAL_COUNT) {
if (info->filesize > 0) {
break;
} else if (count == _MMCAMCORDER_RETRIAL_COUNT) {
- _mmcam_dbg_err("Commit fail, waited 200 ms, but file size is %lu", info->filesize);
+ _mmcam_dbg_err("Commit fail, waited 200 ms, but file size is %"G_GUINT64_FORMAT, info->filesize);
info->b_commiting = FALSE;
return MM_ERROR_CAMCORDER_INVALID_CONDITION;
} else {
info->b_commiting = FALSE;
return MM_ERROR_CAMCORDER_INVALID_CONDITION;
} else {
- _mmcam_dbg_warn("Waiting for enough audio frame, re-count[%d], file size is %lu",
+ _mmcam_dbg_warn("Waiting for enough audio frame, re-count[%d], file size is %"G_GUINT64_FORMAT,
count, info->filesize);
}
usleep(_MMCAMCORDER_FRAME_WAIT_TIME);
count, info->filesize);
}
usleep(_MMCAMCORDER_FRAME_WAIT_TIME);
const GstSegment *segment;
gst_event_parse_segment(event, &segment);
if (segment->format == GST_FORMAT_BYTES) {
const GstSegment *segment;
gst_event_parse_segment(event, &segment);
if (segment->format == GST_FORMAT_BYTES) {
- _mmcam_dbg_log("change current offset %llu -> %lu",
+ _mmcam_dbg_log("change current offset %llu -> %"G_GUINT64_FORMAT,
sc->muxed_stream_offset, segment->start);
sc->muxed_stream_offset = (unsigned long long)segment->start;
sc->muxed_stream_offset, segment->start);
sc->muxed_stream_offset = (unsigned long long)segment->start;
#include <stdio.h>
#include <stdarg.h>
#include <stdlib.h>
#include <stdio.h>
#include <stdarg.h>
#include <stdlib.h>
#include <sys/vfs.h> /* struct statfs */
#include <sys/time.h> /* gettimeofday */
#include <sys/stat.h>
#include <sys/vfs.h> /* struct statfs */
#include <sys/time.h> /* gettimeofday */
#include <sys/stat.h>
buf_size = buf_size - 8; /* include tag */
}
buf_size = buf_size - 8; /* include tag */
}
- _mmcam_dbg_log("seek %lu", buf_size);
+ _mmcam_dbg_log("seek %"PRIu64, buf_size);
if (fseeko(f, (off_t)buf_size, SEEK_CUR) != 0) {
_mmcam_dbg_err("fseeko() fail");
return FALSE;
if (fseeko(f, (off_t)buf_size, SEEK_CUR) != 0) {
_mmcam_dbg_err("fseeko() fail");
return FALSE;
buf_size = buf_size - 8; /* include tag */
}
buf_size = buf_size - 8; /* include tag */
}
- _mmcam_dbg_log("seek %lu", buf_size);
+ _mmcam_dbg_log("seek %"PRIu64, buf_size);
if (fseeko(f, (off_t)buf_size, SEEK_CUR) != 0) {
_mmcam_dbg_err("fseeko() fail");
return FALSE;
if (fseeko(f, (off_t)buf_size, SEEK_CUR) != 0) {
_mmcam_dbg_err("fseeko() fail");
return FALSE;
result = result | (temp << 8);
result = result | size[3];
result = result | (temp << 8);
result = result | size[3];
- _mmcam_dbg_log("result : %lu", result);
+ _mmcam_dbg_log("result : %"G_GUINT64_FORMAT, result);
result = result | (temp << 8);
result = result | size[7];
result = result | (temp << 8);
result = result | size[7];
- _mmcam_dbg_log("result : %lu", result);
+ _mmcam_dbg_log("result : %"G_GUINT64_FORMAT, result);
*free_space = vfs.f_bsize * vfs.f_bavail;
/*
_mmcam_dbg_log("vfs.f_bsize [%lu], vfs.f_bavail [%lu]", vfs.f_bsize, vfs.f_bavail);
*free_space = vfs.f_bsize * vfs.f_bavail;
/*
_mmcam_dbg_log("vfs.f_bsize [%lu], vfs.f_bavail [%lu]", vfs.f_bsize, vfs.f_bavail);
- _mmcam_dbg_log("memory size %lu [%s]", *free_space, path);
+ _mmcam_dbg_log("memory size %"G_GUINT64_FORMAT" [%s]", *free_space, path);
if (info->video_frame_count >= _MMCAMCORDER_MINIMUM_FRAME) {
break;
} else if (count == _MMCAMCORDER_RETRIAL_COUNT) {
if (info->video_frame_count >= _MMCAMCORDER_MINIMUM_FRAME) {
break;
} else if (count == _MMCAMCORDER_RETRIAL_COUNT) {
- _mmcam_dbg_err("Pause fail, frame count %lu", info->video_frame_count);
+ _mmcam_dbg_err("Pause fail, frame count %"G_GUINT64_FORMAT, info->video_frame_count);
return MM_ERROR_CAMCORDER_INVALID_CONDITION;
} else {
return MM_ERROR_CAMCORDER_INVALID_CONDITION;
} else {
- _mmcam_dbg_warn("Waiting for enough video frame, retrial[%d], frame %lu", count, info->video_frame_count);
+ _mmcam_dbg_warn("Waiting for enough video frame, retrial[%d], frame %"G_GUINT64_FORMAT, count, info->video_frame_count);
}
usleep(_MMCAMCORDER_FRAME_WAIT_TIME);
}
usleep(_MMCAMCORDER_FRAME_WAIT_TIME);
if (info->video_frame_count >= _MMCAMCORDER_MINIMUM_FRAME && info->audio_frame_count) {
break;
} else if (count == _MMCAMCORDER_RETRIAL_COUNT) {
if (info->video_frame_count >= _MMCAMCORDER_MINIMUM_FRAME && info->audio_frame_count) {
break;
} else if (count == _MMCAMCORDER_RETRIAL_COUNT) {
- _mmcam_dbg_err("Pause fail, frame count VIDEO[%lu], AUDIO [%lu]",
+ _mmcam_dbg_err("Pause fail, frame count VIDEO[%"G_GUINT64_FORMAT"], AUDIO [%"G_GUINT64_FORMAT"]",
info->video_frame_count, info->audio_frame_count);
return MM_ERROR_CAMCORDER_INVALID_CONDITION;
} else {
info->video_frame_count, info->audio_frame_count);
return MM_ERROR_CAMCORDER_INVALID_CONDITION;
} else {
- _mmcam_dbg_warn("Waiting for enough frames, retrial [%d], VIDEO[%lu], AUDIO [%lu]",
+ _mmcam_dbg_warn("Waiting for enough frames, retrial [%d], VIDEO[%"G_GUINT64_FORMAT"], AUDIO [%"G_GUINT64_FORMAT"]",
count, info->video_frame_count, info->audio_frame_count);
}
count, info->video_frame_count, info->audio_frame_count);
}
hcamcorder->capture_in_recording == FALSE) {
break;
} else if (count == _MMCAMCORDER_RETRIAL_COUNT) {
hcamcorder->capture_in_recording == FALSE) {
break;
} else if (count == _MMCAMCORDER_RETRIAL_COUNT) {
- _mmcam_dbg_err("Commit fail, frame count is %lu, capturing %d",
+ _mmcam_dbg_err("Commit fail, frame count is %"G_GUINT64_FORMAT", capturing %d",
info->video_frame_count, hcamcorder->capture_in_recording);
if (info->video_frame_count >= _MMCAMCORDER_MINIMUM_FRAME) {
info->video_frame_count, hcamcorder->capture_in_recording);
if (info->video_frame_count >= _MMCAMCORDER_MINIMUM_FRAME) {
return MM_ERROR_CAMCORDER_INVALID_CONDITION;
}
} else {
return MM_ERROR_CAMCORDER_INVALID_CONDITION;
}
} else {
- _mmcam_dbg_warn("Waiting for enough video frame, retrial [%d], frame %lu, capturing %d",
+ _mmcam_dbg_warn("Waiting for enough video frame, retrial [%d], frame %"G_GUINT64_FORMAT", capturing %d",
count, info->video_frame_count, hcamcorder->capture_in_recording);
}
} else {
count, info->video_frame_count, hcamcorder->capture_in_recording);
}
} else {
hcamcorder->capture_in_recording == FALSE) {
break;
} else if (count == _MMCAMCORDER_RETRIAL_COUNT) {
hcamcorder->capture_in_recording == FALSE) {
break;
} else if (count == _MMCAMCORDER_RETRIAL_COUNT) {
- _mmcam_dbg_err("Commit fail, VIDEO[%lu], AUDIO [%lu], capturing %d",
+ _mmcam_dbg_err("Commit fail, VIDEO[%"G_GUINT64_FORMAT"], AUDIO [%"G_GUINT64_FORMAT"], capturing %d",
info->video_frame_count, info->audio_frame_count, hcamcorder->capture_in_recording);
if (info->video_frame_count >= _MMCAMCORDER_MINIMUM_FRAME && info->audio_frame_count) {
info->video_frame_count, info->audio_frame_count, hcamcorder->capture_in_recording);
if (info->video_frame_count >= _MMCAMCORDER_MINIMUM_FRAME && info->audio_frame_count) {
return MM_ERROR_CAMCORDER_INVALID_CONDITION;
} else {
return MM_ERROR_CAMCORDER_INVALID_CONDITION;
} else {
- _mmcam_dbg_warn("Waiting for enough frames, retrial [%d], VIDEO[%lu], AUDIO [%lu], capturing %d",
+ _mmcam_dbg_warn("Waiting for enough frames, retrial [%d], VIDEO[%"G_GUINT64_FORMAT"], AUDIO [%"G_GUINT64_FORMAT"], capturing %d",
count, info->video_frame_count, info->audio_frame_count, hcamcorder->capture_in_recording);
}
}
count, info->video_frame_count, info->audio_frame_count, hcamcorder->capture_in_recording);
}
}
/* Check file size */
if (info->max_size > 0) {
_mmcamcorder_get_file_size(info->filename, &file_size);
/* Check file size */
if (info->max_size > 0) {
_mmcamcorder_get_file_size(info->filename, &file_size);
- _mmcam_dbg_log("MAX size %lu byte - created filesize %lu byte",
+ _mmcam_dbg_log("MAX size %"G_GUINT64_FORMAT" byte - created filesize %"G_GUINT64_FORMAT" byte",
info->max_size, file_size);
if (file_size > info->max_size) {
info->max_size, file_size);
if (file_size > info->max_size) {