else if (CHECK_IS_TEXT(fmt_handle->mimetype))
*formattype = MEDIA_FORMAT_TEXT;
else {
- LOGE("The format handle is not for AUDIO / VIDEO / CONTAINER / TEXT..\n");
+ LOGE("format[%p, mimetype:0x%x] is not for AUDIO / VIDEO / CONTAINER / TEXT..", fmt_handle, fmt_handle->mimetype);
return MEDIA_FORMAT_ERROR_INVALID_OPERATION;
}
fmt_handle = (media_format_s *)fmt;
if (!CHECK_IS_CONTAINER(fmt_handle->mimetype)) {
- LOGE("The format handle is not for MEDIA_FORMAT_CONTAINER..\n");
+ LOGE("format[%p, mimetype:0x%x] is not for MEDIA_FORMAT_CONTAINER..", fmt_handle, fmt_handle->mimetype);
return MEDIA_FORMAT_ERROR_INVALID_PARAMETER;
}
fmt_handle = (media_format_s *)fmt;
if (!CHECK_IS_TEXT(fmt_handle->mimetype)) {
- LOGE("The format handle is not for MEDIA_FORMAT_TEXT..\n");
+ LOGE("format[%p, mimetype:0x%x] is not for MEDIA_FORMAT_TEXT..", fmt_handle, fmt_handle->mimetype);
return MEDIA_FORMAT_ERROR_INVALID_OPERATION;
}
fmt_handle = (media_format_s *)fmt;
if (!CHECK_IS_VIDEO(fmt_handle->mimetype)) {
- LOGE("The format handle is not for MEDIA_FORMAT_VIDEO..\n");
+ LOGE("format[%p, mimetype:0x%x] is not for MEDIA_FORMAT_VIDEO..", fmt_handle, fmt_handle->mimetype);
return MEDIA_FORMAT_ERROR_INVALID_OPERATION;
}
fmt_handle = (media_format_s *)fmt;
if (!CHECK_IS_AUDIO(fmt_handle->mimetype)) {
- LOGE("The format handle is not for MEDIA_FORMAT_AUDIO..\n");
+ LOGE("format[%p, mimetype:0x%x] is not for MEDIA_FORMAT_AUDIO..", fmt_handle, fmt_handle->mimetype);
return MEDIA_FORMAT_ERROR_INVALID_OPERATION;
}
if (mimetype)
fmt_handle = (media_format_s *)fmt;
if (!(fmt_handle->mimetype == MEDIA_FORMAT_AAC_LC || fmt_handle->mimetype == MEDIA_FORMAT_AAC_HE || fmt_handle->mimetype == MEDIA_FORMAT_AAC_HE_PS)) {
- LOGE("The format handle is not aac format..\n");
+ LOGE("format[%p, mimetype:0x%x] is not aac format..", fmt_handle, fmt_handle->mimetype);
return MEDIA_FORMAT_ERROR_INVALID_OPERATION;
}
fmt_handle = (media_format_s *)fmt;
if (!(fmt_handle->mimetype == MEDIA_FORMAT_AAC_LC || fmt_handle->mimetype == MEDIA_FORMAT_AAC_HE || fmt_handle->mimetype == MEDIA_FORMAT_AAC_HE_PS)) {
- LOGE("The format handle is not aac format..\n");
+ LOGE("format[%p, mimetype:0x%x] is not aac format..", fmt_handle, fmt_handle->mimetype);
return MEDIA_FORMAT_ERROR_INVALID_OPERATION;
}
fmt_handle = (media_format_s *)fmt;
if (!CHECK_IS_VIDEO(fmt_handle->mimetype)) {
- LOGE("The format handle is not for MEDIA_FORMAT_VIDEO..\n");
+ LOGE("format[%p, mimetype:0x%x] is not for MEDIA_FORMAT_VIDEO..", fmt_handle, fmt_handle->mimetype);
return MEDIA_FORMAT_ERROR_INVALID_OPERATION;
}
fmt_handle = (media_format_s *)fmt;
if (!CHECK_IS_VIDEO(fmt_handle->mimetype)) {
- LOGE("The format handle is not for MEDIA_FORMAT_VIDEO..\n");
+ LOGE("format[%p, mimetype:0x%x] is not for MEDIA_FORMAT_VIDEO..", fmt_handle, fmt_handle->mimetype);
return MEDIA_FORMAT_ERROR_INVALID_PARAMETER;
}
fmt_handle = (media_format_s *)fmt;
if (!CHECK_IS_VIDEO(fmt_handle->mimetype)) {
- LOGE("The format handle is not for MEDIA_FORMAT_VIDEO..\n");
+ LOGE("format[%p, mimetype:0x%x] is not for MEDIA_FORMAT_VIDEO..", fmt_handle, fmt_handle->mimetype);
return MEDIA_FORMAT_ERROR_INVALID_PARAMETER;
}
fmt_handle = (media_format_s *)fmt;
if (!CHECK_IS_VIDEO(fmt_handle->mimetype)) {
- LOGE("The format handle is not for MEDIA_FORMAT_VIDEO..\n");
+ LOGE("format[%p, mimetype:0x%x] is not for MEDIA_FORMAT_VIDEO..", fmt_handle, fmt_handle->mimetype);
return MEDIA_FORMAT_ERROR_INVALID_PARAMETER;
}
fmt_handle = (media_format_s *)fmt;
if (!CHECK_IS_VIDEO(fmt_handle->mimetype)) {
- LOGE("The format handle is not for MEDIA_FORMAT_VIDEO..\n");
+ LOGE("format[%p, mimetype:0x%x] is not for MEDIA_FORMAT_VIDEO..", fmt_handle, fmt_handle->mimetype);
return MEDIA_FORMAT_ERROR_INVALID_PARAMETER;
}
fmt_handle = (media_format_s *)fmt;
if (!CHECK_IS_VIDEO(fmt_handle->mimetype)) {
- LOGE("The format handle is not for MEDIA_FORMAT_VIDEO..\n");
+ LOGE("format[%p, mimetype:0x%x] is not for MEDIA_FORMAT_VIDEO..", fmt_handle, fmt_handle->mimetype);
return MEDIA_FORMAT_ERROR_INVALID_PARAMETER;
}
fmt_handle = (media_format_s *)fmt;
if (!CHECK_IS_AUDIO(mimetype)) {
- LOGE("The format handle is not for MEDIA_FORMAT_AUDIO..\n");
+ LOGE("format[%p, mimetype:0x%x] is not for MEDIA_FORMAT_AUDIO..", fmt_handle, fmt_handle->mimetype);
return MEDIA_FORMAT_ERROR_INVALID_PARAMETER;
}
fmt_handle = (media_format_s *)fmt;
if (!CHECK_IS_AUDIO(fmt_handle->mimetype)) {
- LOGE("The format handle is not for MEDIA_FORMAT_AUDIO..\n");
+ LOGE("format[%p, mimetype:0x%x] is not for MEDIA_FORMAT_AUDIO..", fmt_handle, fmt_handle->mimetype);
return MEDIA_FORMAT_ERROR_INVALID_PARAMETER;
}
fmt_handle = (media_format_s *)fmt;
if (!CHECK_IS_AUDIO(fmt_handle->mimetype)) {
- LOGE("The format handle is not for MEDIA_FORMAT_AUDIO..\n");
+ LOGE("format[%p, mimetype:0x%x] is not for MEDIA_FORMAT_AUDIO..", fmt_handle, fmt_handle->mimetype);
return MEDIA_FORMAT_ERROR_INVALID_PARAMETER;
}
fmt_handle = (media_format_s *)fmt;
if (!CHECK_IS_AUDIO(fmt_handle->mimetype)) {
- LOGE("The format handle is not for MEDIA_FORMAT_AUDIO..\n");
+ LOGE("format[%p, mimetype:0x%x] is not for MEDIA_FORMAT_AUDIO..", fmt_handle, fmt_handle->mimetype);
return MEDIA_FORMAT_ERROR_INVALID_PARAMETER;
}
fmt_handle = (media_format_s *)fmt;
if (!CHECK_IS_AUDIO(fmt_handle->mimetype)) {
- LOGE("The format handle is not for MEDIA_FORMAT_AUDIO..\n");
+ LOGE("format[%p, mimetype:0x%x] is not for MEDIA_FORMAT_AUDIO..", fmt_handle, fmt_handle->mimetype);
return MEDIA_FORMAT_ERROR_INVALID_PARAMETER;
}
fmt_handle = (media_format_s *)fmt;
if (!CHECK_IS_AUDIO(fmt_handle->mimetype)) {
- LOGE("The format handle is not for MEDIA_FORMAT_AUDIO..\n");
+ LOGE("format[%p, mimetype:0x%x] is not for MEDIA_FORMAT_AUDIO..", fmt_handle, fmt_handle->mimetype);
return MEDIA_FORMAT_ERROR_INVALID_PARAMETER;
}
fmt_handle = (media_format_s *)fmt;
if (!CHECK_IS_AUDIO(fmt_handle->mimetype)) {
- LOGE("The format handle is not for MEDIA_FORMAT_AUDIO..\n");
+ LOGE("format[%p, mimetype:0x%x] is not for MEDIA_FORMAT_AUDIO..", fmt_handle, fmt_handle->mimetype);
return MEDIA_FORMAT_ERROR_INVALID_PARAMETER;
}
fmt_handle = (media_format_s *)fmt;
if (MEDIA_FORMAT_GET_REFCOUNT(fmt) <= 0) {
- LOGE("The format ref_count is less than 0..\n");
+ LOGE("The format ref_count is less than 0..");
return MEDIA_FORMAT_ERROR_INVALID_OPERATION;
}
is_zero = g_atomic_int_dec_and_test(&fmt_handle->ref_count);
if (is_zero) {
- LOGI("The format handle(%p) will be destroyed..\n", fmt);
+ LOGI("The format handle(%p) will be destroyed..", fmt);
/* if reference count become 0 , free fmt. */
__media_format_destroy(fmt_handle);
} else {
MEDIA_FORMAT_NULL_ARG_CHECK(is_writable);
if (MEDIA_FORMAT_GET_REFCOUNT(fmt) <= 0) {
- LOGE("The format ref_count is less than 0..\n."); //LCOV_EXCL_LINE
+ LOGE("The format ref_count is less than 0..."); //LCOV_EXCL_LINE
return MEDIA_FORMAT_ERROR_INVALID_OPERATION;
}
}
*out_fmt = (media_format_h) copy;
- LOGI("the copied new format handle: %p\n", *out_fmt);
+ LOGI("the copied new format handle: %p", *out_fmt);
}
fmt_handle = (media_format_s *)fmt;
if (MEDIA_FORMAT_GET_REFCOUNT(fmt) <= 0) {
- LOGE("The format ref_count is less than 0..\n");
+ LOGE("The format ref_count is less than 0..");
return MEDIA_FORMAT_ERROR_INVALID_OPERATION;
}
if (!CHECK_IS_AUDIO(fmt_handle->mimetype)) {
- LOGE("The format handle is not for MEDIA_FORMAT_AUDIO..\n");
+ LOGE("format[%p, mimetype:0x%x] is not for MEDIA_FORMAT_AUDIO..", fmt_handle, fmt_handle->mimetype);
return MEDIA_FORMAT_ERROR_INVALID_PARAMETER;
}
fmt_handle = (media_format_s *)fmt;
if (MEDIA_FORMAT_GET_REFCOUNT(fmt) <= 0) {
- LOGE("The format ref_count is less than 0..\n");
+ LOGE("The format ref_count is less than 0..");
return MEDIA_FORMAT_ERROR_INVALID_OPERATION;
}
if (!CHECK_IS_AUDIO(fmt_handle->mimetype)) {
- LOGE("The format handle is not for MEDIA_FORMAT_AUDIO..\n");
+ LOGE("format[%p, mimetype:0x%x] is not for MEDIA_FORMAT_AUDIO..", fmt_handle, fmt_handle->mimetype);
return MEDIA_FORMAT_ERROR_INVALID_PARAMETER;
}
fmt_handle = (media_format_s *)fmt;
if (MEDIA_FORMAT_GET_REFCOUNT(fmt) <= 0) {
- LOGE("The format ref_count is less than 0..\n");
+ LOGE("The format ref_count is less than 0..");
return MEDIA_FORMAT_ERROR_INVALID_OPERATION;
}
if (!CHECK_IS_AUDIO(fmt_handle->mimetype) || !CHECK_IS_RAW(fmt_handle->mimetype)) {
- LOGE("The format handle is not for PCM\n");
+ LOGE("format[%p, mimetype:0x%x] is not for PCM", fmt_handle, fmt_handle->mimetype);
return MEDIA_FORMAT_ERROR_INVALID_PARAMETER;
}
*is_little_endian = false;
break;
default:
- LOGE("The format handle is not for PCM\n");
+ LOGE("invalid mimetype(0x%x)", fmt_handle->mimetype);
return MEDIA_FORMAT_ERROR_INVALID_OPERATION;
}
fmt_handle = (media_format_s *)fmt;
if (MEDIA_FORMAT_GET_REFCOUNT(fmt) <= 0) {
- LOGE("The format ref_count is less than 0..\n");
+ LOGE("The format ref_count is less than 0..");
return MEDIA_FORMAT_ERROR_INVALID_OPERATION;
}
if (!CHECK_IS_AUDIO(fmt_handle->mimetype) || !CHECK_IS_RAW(fmt_handle->mimetype)) {
- LOGE("The format handle is not for AUDIO");
+ LOGE("format[%p, mimetype:0x%x] is not for AUDIO", fmt_handle, fmt_handle->mimetype);
return MEDIA_FORMAT_ERROR_INVALID_PARAMETER;
}
*bit_depth = 32;
break;
default:
- LOGE("The format handle is not for PCM\n");
+ LOGE("invalid mimetype(0x%x)", fmt_handle->mimetype);
return MEDIA_FORMAT_ERROR_INVALID_OPERATION;
}
fmt_handle = (media_format_s *)fmt;
if (MEDIA_FORMAT_GET_REFCOUNT(fmt) <= 0) {
- LOGE("The format ref_count is less than 0..\n");
+ LOGE("The format ref_count is less than 0..");
return MEDIA_FORMAT_ERROR_INVALID_OPERATION;
}