[Version] 1.0.1
Change-Id: I63d1f9b785c62705409f66993b99ab87fe1804a1
Signed-off-by: Kwanghoon Son <k.son@samsung.com>
--- /dev/null
+find . -iname *.h -o -iname *.hpp -o -iname *.cpp -o -iname *.c | xargs clang-format-9 -i
\ No newline at end of file
Name: vision-source-v4l2
Summary: vision source-v4l2
Name: vision-source-v4l2
Summary: vision source-v4l2
Release: 0
Group: Multimedia/Framework
License: Apache-2.0
Release: 0
Group: Multimedia/Framework
License: Apache-2.0
for (size_t i = 0; i < dev_count; i++) {
vs_handle->dev_info[i].index = i;
strncpy(vs_handle->dev_info[i].name, dev_name[i].c_str(), DEVICE_NAME_LENGTH_MAX);
for (size_t i = 0; i < dev_count; i++) {
vs_handle->dev_info[i].index = i;
strncpy(vs_handle->dev_info[i].name, dev_name[i].c_str(), DEVICE_NAME_LENGTH_MAX);
+ vs_handle->dev_info[i].name[DEVICE_NAME_LENGTH_MAX - 1] = '\0';
vs_handle->fmt[i] = (media_format_h *) calloc(dev_fmt_list[i].size(), sizeof(media_format_h));
if (!vs_handle->fmt[i]) {
return VISION_SOURCE_ERROR_OUT_OF_MEMORY;
vs_handle->fmt[i] = (media_format_h *) calloc(dev_fmt_list[i].size(), sizeof(media_format_h));
if (!vs_handle->fmt[i]) {
return VISION_SOURCE_ERROR_OUT_OF_MEMORY;
int ret = __vision_source_list_devices(v4l2_handle);
if (ret != VISION_SOURCE_ERROR_NONE) {
int ret = __vision_source_list_devices(v4l2_handle);
if (ret != VISION_SOURCE_ERROR_NONE) {
LOGE("get device info failed");
return ret;
}
LOGE("get device info failed");
return ret;
}