Fix coverity issue 58/305158/4 accepted/tizen/unified/20240202.020807 accepted/tizen/unified/toolchain/20240311.065133 accepted/tizen/unified/x/20240205.064106
authorJeongmo Yang <jm80.yang@samsung.com>
Mon, 29 Jan 2024 10:25:32 +0000 (19:25 +0900)
committerJeongmo Yang <jm80.yang@samsung.com>
Mon, 29 Jan 2024 10:48:48 +0000 (19:48 +0900)
- Printf arg count mismatch
- Invalid type in argument to printf format specifier
- Missing argument to printf format specifier

[Version] 0.1.63
[Issue Type] Coverity

Change-Id: Ie400e25f6cd0562c4000780a952e8a72101208be
Signed-off-by: Jeongmo Yang <jm80.yang@samsung.com>
packaging/capi-media-tool.spec
src/media_bridge.c
src/media_format.c

index 4b97d016ba7c2393c9b382664580b424d2461491..955868fb07ebbb444b785060e9db3f54f58cd48d 100644 (file)
@@ -1,6 +1,6 @@
 Name:       capi-media-tool
 Summary:    A Core API media tool library in Tizen Native API
-Version:    0.1.62
+Version:    0.1.63
 Release:    0
 Group:      Multimedia/API
 License:    Apache-2.0
index aa0d6295244076473db3c6e5441f52f66c1e4ab3..1ac960ca591cc72b66a52f084e9d996ae8d90ea6 100644 (file)
@@ -507,7 +507,7 @@ int media_bridge_remove_sink(media_bridge_h bridge, int sink_id)
 
        handle->sink_count--;
 
-       LOGI("[%p] sink removed[id:%d,count:%u]", sink_id, handle->sink_count);
+       LOGI("[%p] sink removed[id:%d,count:%u]", handle, sink_id, handle->sink_count);
 
 _REMOVE_SINK_OUT:
        g_mutex_unlock(&handle->lock);
index d989b991c027439836412fb54ed048aa219bec7c..55b83d1af025b8369610ab9433bd3cf9a9e7d1ee 100644 (file)
@@ -182,7 +182,9 @@ int media_format_get_text_info(media_format_h fmt, media_format_mimetype_e *mime
        if (type)
                *type = fmt_handle->detail.text.type;
 
-       LOGI("format[%p] mimetype[0x%x] text type[%d]", fmt, mimetype ? *mimetype : NULL, type ? *type : NULL);
+       LOGI("format[%p] mimetype[0x%x:%p] text type[%d:%p]", fmt,
+               fmt_handle->mimetype, mimetype,
+               fmt_handle->detail.text.type, type);
 
        return MEDIA_FORMAT_ERROR_NONE;
 }