From: Jeongmo Yang Date: Mon, 29 Jan 2024 10:25:32 +0000 (+0900) Subject: Fix coverity issue X-Git-Tag: accepted/tizen/unified/20240202.020807^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fchanges%2F58%2F305158%2F4;p=platform%2Fcore%2Fapi%2Fmediatool.git Fix coverity issue - 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 --- diff --git a/packaging/capi-media-tool.spec b/packaging/capi-media-tool.spec index 4b97d01..955868f 100644 --- a/packaging/capi-media-tool.spec +++ b/packaging/capi-media-tool.spec @@ -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 diff --git a/src/media_bridge.c b/src/media_bridge.c index aa0d629..1ac960c 100644 --- a/src/media_bridge.c +++ b/src/media_bridge.c @@ -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); diff --git a/src/media_format.c b/src/media_format.c index d989b99..55b83d1 100644 --- a/src/media_format.c +++ b/src/media_format.c @@ -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; }