Name: libmm-camcorder
Summary: Camera and recorder library
-Version: 0.10.175
+Version: 0.10.176
Release: 0
Group: Multimedia/Libraries
License: Apache-2.0
if (info->filesize > 0) {
break;
} else if (count == _MMCAMCORDER_RETRIAL_COUNT) {
- _mmcam_dbg_err("Pause fail, wait 200 ms, but file size is %lld",
+ _mmcam_dbg_err("Pause fail, wait 200 ms, but file size is %lu",
info->filesize);
return MM_ERROR_CAMCORDER_INVALID_CONDITION;
} else {
- _mmcam_dbg_warn("Wait for enough audio frame, retry count[%d], file size is %lld",
+ _mmcam_dbg_warn("Wait for enough audio frame, retry count[%d], file size is %lu",
count, info->filesize);
}
usleep(_MMCAMCORDER_FRAME_WAIT_TIME);
if (info->filesize > 0) {
break;
} else if (count == _MMCAMCORDER_RETRIAL_COUNT) {
- _mmcam_dbg_err("Commit fail, waited 200 ms, but file size is %lld", info->filesize);
+ _mmcam_dbg_err("Commit fail, waited 200 ms, but file size is %lu", info->filesize);
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 %lld",
+ _mmcam_dbg_warn("Waiting for enough audio frame, re-count[%d], file size is %lu",
count, info->filesize);
}
usleep(_MMCAMCORDER_FRAME_WAIT_TIME);
nread = fread(&buf, sizeof(char), sizeof(buf), f);
- _mmcam_dbg_log("recorded file fread %d", nread);
+ _mmcam_dbg_log("recorded file fread %zu", nread);
udta_size = _mmcamcorder_get_container_size(buf);
new_conf = (camera_conf *)g_malloc0(sizeof(camera_conf));
if (new_conf == NULL) {
- _mmcam_dbg_err("new_conf alloc failed : %d", sizeof(camera_conf));
+ _mmcam_dbg_err("new_conf alloc failed : %zu", sizeof(camera_conf));
return MM_ERROR_CAMCORDER_LOW_MEMORY;
}
buffer_string = (char*)g_malloc0(sizeof(char) * BUFFER_LENGTH_STRING);
if (buffer_string == NULL) {
- _mmcam_dbg_err("buffer_string alloc failed : %d", sizeof(char) * BUFFER_LENGTH_STRING);
+ _mmcam_dbg_err("buffer_string alloc failed : %zu", sizeof(char) * BUFFER_LENGTH_STRING);
g_free(new_conf);
return MM_ERROR_CAMCORDER_LOW_MEMORY;
}
}
}
} else {
- _mmcam_dbg_err("malloc failed : %d", sizeof(type_string2*)*(new_element->count_string));
+ _mmcam_dbg_err("malloc failed : %zu", sizeof(type_string2*)*(new_element->count_string));
}
} else {
/*_mmcam_dbg_err("invalid count - %d", new_element->count_string);*/
arr = (int*) g_malloc0(count * sizeof(int));
if (arr == NULL) {
- _mmcam_dbg_err("malloc failed : %d", count * sizeof(int));
+ _mmcam_dbg_err("malloc failed : %zu", count * sizeof(int));
return 0;
}
const GstSegment *segment;
gst_event_parse_segment(event, &segment);
if (segment->format == GST_FORMAT_BYTES) {
- _mmcam_dbg_log("change current offset %llu -> %llu",
+ _mmcam_dbg_log("change current offset %llu -> %lu",
sc->muxed_stream_offset, segment->start);
sc->muxed_stream_offset = (unsigned long long)segment->start;
goto error;
} else {
if ((mapinfo1.data == NULL) && (mapinfo1.size == 0)) {
- _mmcam_dbg_err("mapinfo1 is wrong (%p, size %d)", mapinfo1.data, mapinfo1.size);
+ _mmcam_dbg_err("mapinfo1 is wrong (%p, size %zu)", mapinfo1.data, mapinfo1.size);
MMCAM_SEND_MESSAGE(hcamcorder, MM_MESSAGE_CAMCORDER_ERROR, MM_ERROR_CAMCORDER_INTERNAL);
gst_buffer_unmap(gst_sample_get_buffer(sample1), &mapinfo1);
goto error;
mm_attrs_get_index(attrs, MMCAM_CAPTURED_SCREENNAIL, &attr_index_for_screennail);
if (sample3 && mapinfo3.data && mapinfo3.size != 0) {
- _mmcam_dbg_log("Screennail (sample3=%p,size=%d)", sample3, mapinfo3.size);
+ _mmcam_dbg_log("Screennail (sample3=%p,size=%zu)", sample3, mapinfo3.size);
pixtype_scrnl = _mmcamcorder_get_pixel_format(gst_sample_get_caps(sample3));
__mmcamcorder_get_capture_data_from_buffer(&scrnail, pixtype_scrnl, sample3);
/* Set screennail attribute for application */
ret = mm_attrs_set_data(attrs, attr_index_for_screennail, &scrnail, sizeof(scrnail));
- _mmcam_dbg_log("Screennail set attribute data %p, size %d, ret %x", &scrnail, sizeof(scrnail), ret);
+ _mmcam_dbg_log("Screennail set attribute data %p, size %zu, ret %x", &scrnail, sizeof(scrnail), ret);
} else {
_mmcam_dbg_log("Sample3 has wrong pointer. Not Error. (sample3=%p)", sample3);
mm_attrs_set_data(attrs, attr_index_for_screennail, NULL, 0);
uint32_t buf_fourcc = 0;
if (read_item < 8) {
- _mmcam_dbg_err("fread failed : %d", read_item);
+ _mmcam_dbg_err("fread failed : %zu", read_item);
break;
}
buf_size = buf_size - 8; /* include tag */
}
- _mmcam_dbg_log("seek %llu", buf_size);
+ _mmcam_dbg_log("seek %lu", buf_size);
if (fseeko(f, (off_t)buf_size, SEEK_CUR) != 0) {
_mmcam_dbg_err("fseeko() fail");
return FALSE;
uint32_t buf_fourcc = 0;
if (read_item < 8) {
- _mmcam_dbg_err("fread failed : %d", read_item);
+ _mmcam_dbg_err("fread failed : %zu", read_item);
break;
}
buf_size = buf_size - 8; /* include tag */
}
- _mmcam_dbg_log("seek %llu", buf_size);
+ _mmcam_dbg_log("seek %lu", buf_size);
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];
- _mmcam_dbg_log("result : %llu", result);
+ _mmcam_dbg_log("result : %lu", result);
return result;
}
result = result | (temp << 8);
result = result | size[7];
- _mmcam_dbg_log("result : %llu", result);
+ _mmcam_dbg_log("result : %lu", result);
return 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);
- _mmcam_dbg_log("memory size %llu [%s]", *free_space, path);
+ _mmcam_dbg_log("memory size %lu [%s]", *free_space, path);
*/
return 0;
}
if (info->video_frame_count >= _MMCAMCORDER_MINIMUM_FRAME) {
break;
} else if (count == _MMCAMCORDER_RETRIAL_COUNT) {
- _mmcam_dbg_err("Pause fail, frame count %llu", info->video_frame_count);
+ _mmcam_dbg_err("Pause fail, frame count %lu", info->video_frame_count);
return MM_ERROR_CAMCORDER_INVALID_CONDITION;
} else {
- _mmcam_dbg_warn("Waiting for enough video frame, retrial[%d], frame %llu", count, info->video_frame_count);
+ _mmcam_dbg_warn("Waiting for enough video frame, retrial[%d], frame %lu", count, info->video_frame_count);
}
usleep(_MMCAMCORDER_FRAME_WAIT_TIME);
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[%llu], AUDIO [%llu]",
+ _mmcam_dbg_err("Pause fail, frame count VIDEO[%lu], AUDIO [%lu]",
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[%llu], AUDIO [%llu]",
+ _mmcam_dbg_warn("Waiting for enough frames, retrial [%d], VIDEO[%lu], AUDIO [%lu]",
count, info->video_frame_count, info->audio_frame_count);
}
hcamcorder->capture_in_recording == FALSE) {
break;
} else if (count == _MMCAMCORDER_RETRIAL_COUNT) {
- _mmcam_dbg_err("Commit fail, frame count is %llu, capturing %d",
+ _mmcam_dbg_err("Commit fail, frame count is %lu, capturing %d",
info->video_frame_count, hcamcorder->capture_in_recording);
if (info->video_frame_count >= _MMCAMCORDER_MINIMUM_FRAME) {
return MM_ERROR_CAMCORDER_INVALID_CONDITION;
}
} else {
- _mmcam_dbg_warn("Waiting for enough video frame, retrial [%d], frame %llu, capturing %d",
+ _mmcam_dbg_warn("Waiting for enough video frame, retrial [%d], frame %lu, capturing %d",
count, info->video_frame_count, hcamcorder->capture_in_recording);
}
} else {
hcamcorder->capture_in_recording == FALSE) {
break;
} else if (count == _MMCAMCORDER_RETRIAL_COUNT) {
- _mmcam_dbg_err("Commit fail, VIDEO[%llu], AUDIO [%llu], capturing %d",
+ _mmcam_dbg_err("Commit fail, VIDEO[%lu], AUDIO [%lu], 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) {
return MM_ERROR_CAMCORDER_INVALID_CONDITION;
} else {
- _mmcam_dbg_warn("Waiting for enough frames, retrial [%d], VIDEO[%llu], AUDIO [%llu], capturing %d",
+ _mmcam_dbg_warn("Waiting for enough frames, retrial [%d], VIDEO[%lu], AUDIO [%lu], capturing %d",
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);
- _mmcam_dbg_log("MAX size %lld byte - created filesize %lld byte",
+ _mmcam_dbg_log("MAX size %lu byte - created filesize %lu byte",
info->max_size, file_size);
if (file_size > info->max_size) {
nread = fread(&buf, sizeof(char), sizeof(buf), f);
- _mmcam_dbg_log("recorded file fread %d", nread);
+ _mmcam_dbg_log("recorded file fread %zu", nread);
udta_size = _mmcamcorder_get_container_size(buf);