MEDIA_FORMAT_INSTANCE_CHECK(fmt);
if (!MEDIA_FORMAT_IS_WRITABLE(fmt)) {
- LOGE("The format can not be changed..\n", __FUNCTION__);
+ LOGE("The format can not be changed..\n", __FUNCTION__); //LCOV_EXCL_LINE
return MEDIA_FORMAT_ERROR_INVALID_OPERATION;
}
MEDIA_FORMAT_INSTANCE_CHECK(fmt);
if (!MEDIA_FORMAT_IS_WRITABLE(fmt)) {
- LOGE("The format can not be changed..\n", __FUNCTION__);
+ LOGE("The format can not be changed..\n", __FUNCTION__); //LCOV_EXCL_LINE
return MEDIA_FORMAT_ERROR_INVALID_OPERATION;
}
MEDIA_FORMAT_INSTANCE_CHECK(fmt);
if (!MEDIA_FORMAT_IS_WRITABLE(fmt)) {
- LOGE("The format can not be changed..\n", __FUNCTION__);
+ LOGE("The format can not be changed..\n", __FUNCTION__); //LCOV_EXCL_LINE
return MEDIA_FORMAT_ERROR_INVALID_OPERATION;
}
MEDIA_FORMAT_INSTANCE_CHECK(fmt);
if (!MEDIA_FORMAT_IS_WRITABLE(fmt)) {
- LOGE("The format can not be changed..\n", __FUNCTION__);
+ LOGE("The format can not be changed..\n", __FUNCTION__); //LCOV_EXCL_LINE
return MEDIA_FORMAT_ERROR_INVALID_OPERATION;
}
MEDIA_FORMAT_INSTANCE_CHECK(fmt);
if (!MEDIA_FORMAT_IS_WRITABLE(fmt)) {
- LOGE("the format can not be changed..\n", __FUNCTION__);
+ LOGE("the format can not be changed..\n", __FUNCTION__); //LCOV_EXCL_LINE
return MEDIA_FORMAT_ERROR_INVALID_OPERATION;
}
MEDIA_FORMAT_INSTANCE_CHECK(fmt);
if (!MEDIA_FORMAT_IS_WRITABLE(fmt)) {
- LOGE("The format can not be changed..\n", __FUNCTION__);
+ LOGE("The format can not be changed..\n", __FUNCTION__); //LCOV_EXCL_LINE
return MEDIA_FORMAT_ERROR_INVALID_OPERATION;
}
MEDIA_FORMAT_INSTANCE_CHECK(fmt);
if (!MEDIA_FORMAT_IS_WRITABLE(fmt)) {
- LOGE("The format can not be changed..\n", __FUNCTION__);
+ LOGE("The format can not be changed..\n", __FUNCTION__); //LCOV_EXCL_LINE
return MEDIA_FORMAT_ERROR_INVALID_OPERATION;
}
MEDIA_FORMAT_INSTANCE_CHECK(fmt);
if (!MEDIA_FORMAT_IS_WRITABLE(fmt)) {
- LOGE("The format can not be changed..\n", __FUNCTION__);
+ LOGE("The format can not be changed..\n", __FUNCTION__); //LCOV_EXCL_LINE
return MEDIA_FORMAT_ERROR_INVALID_OPERATION;
}
MEDIA_FORMAT_INSTANCE_CHECK(fmt);
if (!MEDIA_FORMAT_IS_WRITABLE(fmt)) {
- LOGE("The format can not be changed..\n", __FUNCTION__);
+ LOGE("The format can not be changed..\n", __FUNCTION__); //LCOV_EXCL_LINE
return MEDIA_FORMAT_ERROR_INVALID_OPERATION;
}
MEDIA_FORMAT_INSTANCE_CHECK(fmt);
if (!MEDIA_FORMAT_IS_WRITABLE(fmt)) {
- LOGE("the format can not be changed..\n", __FUNCTION__);
+ LOGE("the format can not be changed..\n", __FUNCTION__); //LCOV_EXCL_LINE
return MEDIA_FORMAT_ERROR_INVALID_OPERATION;
}
MEDIA_FORMAT_INSTANCE_CHECK(fmt);
if (!MEDIA_FORMAT_IS_WRITABLE(fmt)) {
- LOGE("the format can not be changed..\n", __FUNCTION__);
+ LOGE("the format can not be changed..\n", __FUNCTION__); //LCOV_EXCL_LINE
return MEDIA_FORMAT_ERROR_INVALID_OPERATION;
}
MEDIA_FORMAT_INSTANCE_CHECK(fmt);
if (!MEDIA_FORMAT_IS_WRITABLE(fmt)) {
- LOGE("the format can not be changed..\n", __FUNCTION__);
+ LOGE("the format can not be changed..\n", __FUNCTION__); //LCOV_EXCL_LINE
return MEDIA_FORMAT_ERROR_INVALID_OPERATION;
}
MEDIA_FORMAT_INSTANCE_CHECK(fmt);
if (!MEDIA_FORMAT_IS_WRITABLE(fmt)) {
- LOGE("the format can not be changed..\n", __FUNCTION__);
+ LOGE("the format can not be changed..\n", __FUNCTION__); //LCOV_EXCL_LINE
return MEDIA_FORMAT_ERROR_INVALID_OPERATION;
}
MEDIA_FORMAT_INSTANCE_CHECK(fmt);
if (!MEDIA_FORMAT_IS_WRITABLE(fmt)) {
- LOGE("the format can not be changed..\n", __FUNCTION__);
+ LOGE("the format can not be changed..\n", __FUNCTION__); //LCOV_EXCL_LINE
return MEDIA_FORMAT_ERROR_INVALID_OPERATION;
}
MEDIA_FORMAT_INSTANCE_CHECK(fmt);
if (!MEDIA_FORMAT_IS_WRITABLE(fmt)) {
- LOGE("the format can not be changed..\n", __FUNCTION__);
+ LOGE("the format can not be changed..\n", __FUNCTION__); //LCOV_EXCL_LINE
return MEDIA_FORMAT_ERROR_INVALID_OPERATION;
}
MEDIA_FORMAT_INSTANCE_CHECK(fmt);
if (!MEDIA_FORMAT_IS_WRITABLE(fmt)) {
- LOGE("the format can not be changed..\n", __FUNCTION__);
+ LOGE("the format can not be changed..\n", __FUNCTION__); //LCOV_EXCL_LINE
return MEDIA_FORMAT_ERROR_INVALID_OPERATION;
}
int ret = MEDIA_FORMAT_ERROR_NONE;
MEDIA_FORMAT_INSTANCE_CHECK(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..\n."); //LCOV_EXCL_LINE
ret = MEDIA_FORMAT_ERROR_INVALID_OPERATION;
}
MEDIA_PACKET_INSTANCE_CHECK(fmt);
MEDIA_PACKET_NULL_ARG_CHECK(packet);
if (MEDIA_FORMAT_GET_REFCOUNT(fmt) < 1) {
- LOGE("The media format handle is corrupted or Not set media info");
+ LOGE("The media format handle is corrupted or Not set media info"); //LCOV_EXCL_LINE
return MEDIA_PACKET_ERROR_INVALID_PARAMETER;
}
if (!MEDIA_FORMAT_IS_VIDEO(fmt) && !MEDIA_FORMAT_IS_AUDIO(fmt)
&& !MEDIA_FORMAT_IS_TEXT(fmt)) {
- LOGE("The media format handle is not specified. set video info, audio info or text info...");
+ LOGE("The media format handle is not specified. set video info, audio info or text info..."); //LCOV_EXCL_LINE
return MEDIA_PACKET_ERROR_INVALID_OPERATION;
}
if (handle != NULL)
memset(handle, 0, sizeof(media_packet_s));
else {
- LOGE("[%s] MEDIA_PACKET_ERROR_OUT_OF_MEMORY(0x%08x)", __FUNCTION__, MEDIA_PACKET_ERROR_OUT_OF_MEMORY);
+ LOGE("[%s] MEDIA_PACKET_ERROR_OUT_OF_MEMORY(0x%08x)", __FUNCTION__, MEDIA_PACKET_ERROR_OUT_OF_MEMORY); //LCOV_EXCL_LINE
ret = MEDIA_PACKET_ERROR_OUT_OF_MEMORY;
goto fail;
}
/* alloc buffer */
ret = _pkt_alloc_buffer(handle);
if (ret != MEDIA_PACKET_ERROR_NONE) {
- LOGE("[%s] failed _pkt_alloc_buffer(), err = (0x%08x)", __FUNCTION__, ret);
+ LOGE("[%s] failed _pkt_alloc_buffer(), err = (0x%08x)", __FUNCTION__, ret); //LCOV_EXCL_LINE
goto fail;
}
MEDIA_PACKET_INSTANCE_CHECK(fmt);
MEDIA_PACKET_NULL_ARG_CHECK(packet);
if (MEDIA_FORMAT_GET_REFCOUNT(fmt) < 1) {
- LOGE("The media format handle is corrupted or Not set media info");
+ LOGE("The media format handle is corrupted or Not set media info"); //LCOV_EXCL_LINE
return MEDIA_PACKET_ERROR_INVALID_PARAMETER;
}
if (handle != NULL)
memset(handle, 0, sizeof(media_packet_s));
else {
- LOGE("[%s] MEDIA_PACKET_ERROR_OUT_OF_MEMORY(0x%08x)", __FUNCTION__, MEDIA_PACKET_ERROR_OUT_OF_MEMORY);
+ LOGE("[%s] MEDIA_PACKET_ERROR_OUT_OF_MEMORY(0x%08x)", __FUNCTION__, MEDIA_PACKET_ERROR_OUT_OF_MEMORY); //LCOV_EXCL_LINE
return MEDIA_PACKET_ERROR_OUT_OF_MEMORY;
}
if (handle != NULL)
memset(handle, 0, sizeof(media_packet_s));
else {
- LOGE("[%s] MEDIA_PACKET_ERROR_OUT_OF_MEMORY(0x%08x)", __FUNCTION__, MEDIA_PACKET_ERROR_OUT_OF_MEMORY);
+ LOGE("[%s] MEDIA_PACKET_ERROR_OUT_OF_MEMORY(0x%08x)", __FUNCTION__, MEDIA_PACKET_ERROR_OUT_OF_MEMORY); //LCOV_EXCL_LINE
return MEDIA_PACKET_ERROR_OUT_OF_MEMORY;
}
/* alloc buffer */
int err = _pkt_alloc_buffer(handle);
if (err != MEDIA_PACKET_ERROR_NONE) {
- LOGE("[%s] MEDIA_PACKET_ERROR_OUT_OF_MEMORY(0x%08x)", __FUNCTION__, MEDIA_PACKET_ERROR_OUT_OF_MEMORY);
+ LOGE("[%s] MEDIA_PACKET_ERROR_OUT_OF_MEMORY(0x%08x)", __FUNCTION__, MEDIA_PACKET_ERROR_OUT_OF_MEMORY); //LCOV_EXCL_LINE
ret = err;
goto fail;
}
pkt->size = (size_t)surface_info.size;
LOGD("tbm_surface_created, pkt->size = %d\n", pkt->size);
} else {
- LOGE("tbm_surface_get_info() is failed.. err = 0x%08x \n", err);
+ LOGE("tbm_surface_get_info() is failed.. err = 0x%08x \n", err); //LCOV_EXCL_LINE
tbm_surface_destroy((tbm_surface_h)pkt->surface_data);
return MEDIA_PACKET_ERROR_INVALID_OPERATION;
}
} else {
- LOGE("\n tbm_surface_create() is failed!! \n");
+ LOGE("\n tbm_surface_create() is failed!! \n"); //LCOV_EXCL_LINE
return MEDIA_PACKET_ERROR_INVALID_OPERATION;
}
} else if (handle->type == MEDIA_BUFFER_TYPE_EXTERNAL_TBM_SURFACE || handle->type == MEDIA_BUFFER_TYPE_EXTERNAL_MEMORY) {
/* there is nothing to do, Do not free the buffer which is created by external module. */
} else {
- LOGE("Invalied buffer type");
+ LOGE("Invalied buffer type"); //LCOV_EXCL_LINE
return MEDIA_PACKET_ERROR_INVALID_OPERATION;
}
buffersize = (stride + (_ROUND_UP_16(width) / 2)) * height;
break;
default:
- LOGE("Not supported format\n");
+ LOGE("Not supported format\n"); //LCOV_EXCL_LINE
return 0;
}
buffersize = (OPUS_MAX_FRM_SIZE * OPUS_MAX_NCH) * 2; /* 2 = (16bit/8) */
break;
default:
- LOGE("Not supported format\n");
+ LOGE("Not supported format\n"); //LCOV_EXCL_LINE
return 0;
}
buffersize = TXT_MAX_FRM_SIZE;
break;
default:
- LOGE("Not supported text format\n");
+ LOGE("Not supported text format\n"); //LCOV_EXCL_LINE
return 0;
}
return buffersize;
MEDIA_PACKET_INSTANCE_CHECK(surface);
MEDIA_PACKET_NULL_ARG_CHECK(packet);
if (!MEDIA_FORMAT_IS_VIDEO(fmt) && !MEDIA_FORMAT_IS_AUDIO(fmt)) {
- LOGE("The media format handle is not specified. set video info or audio info...");
+ LOGE("The media format handle is not specified. set video info or audio info..."); //LCOV_EXCL_LINE
return MEDIA_PACKET_ERROR_INVALID_OPERATION;
}
if (handle != NULL) {
memset(handle, 0, sizeof(media_packet_s));
} else {
- LOGE("[%s] MEDIA_PACKET_ERROR_OUT_OF_MEMORY(0x%08x)", __FUNCTION__, MEDIA_PACKET_ERROR_OUT_OF_MEMORY);
+ LOGE("[%s] MEDIA_PACKET_ERROR_OUT_OF_MEMORY(0x%08x)", __FUNCTION__, MEDIA_PACKET_ERROR_OUT_OF_MEMORY); //LCOV_EXCL_LINE
return MEDIA_PACKET_ERROR_OUT_OF_MEMORY;
}
}
if (MEDIA_FORMAT_IS_RAW(fmt) && MEDIA_FORMAT_IS_VIDEO(fmt)) {
- LOGE("failed!. it supports only 'MEDIA_FORMAT_ENCODED' type.");
+ LOGE("failed!. it supports only 'MEDIA_FORMAT_ENCODED' type."); //LCOV_EXCL_LINE
return MEDIA_PACKET_ERROR_INVALID_PARAMETER;
}
if (handle != NULL) {
memset(handle, 0, sizeof(media_packet_s));
} else {
- LOGE("[%s] MEDIA_PACKET_ERROR_OUT_OF_MEMORY(0x%08x)", __FUNCTION__, MEDIA_PACKET_ERROR_OUT_OF_MEMORY);
+ LOGE("[%s] MEDIA_PACKET_ERROR_OUT_OF_MEMORY(0x%08x)", __FUNCTION__, MEDIA_PACKET_ERROR_OUT_OF_MEMORY); //LCOV_EXCL_LINE
return MEDIA_PACKET_ERROR_OUT_OF_MEMORY;
}
/* if trying to set same format, return */
if (handle->format == MEDIA_FORMAT_CAST(fmt)) {
- LOGE("The packet handle already refers the format handle..\n");
+ LOGE("The packet handle already refers the format handle..\n"); //LCOV_EXCL_LINE
return MEDIA_PACKET_ERROR_INVALID_OPERATION;
}
LOGD(" surface_info the number of planes = %d\n", (int)surface_info.num_planes);
} else {
*num = 0;
- LOGE("tbm_surface_get_info() is failed.. 0x%08x \n", err);
+ LOGE("tbm_surface_get_info() is failed.. 0x%08x \n", err); //LCOV_EXCL_LINE
ret = MEDIA_PACKET_ERROR_INVALID_OPERATION;
}
} else {
}
} else {
*stride_width = 0;
- LOGE("tbm_surface_get_info() is failed.. 0x%08x \n", err);
+ LOGE("tbm_surface_get_info() is failed.. 0x%08x \n", err); //LCOV_EXCL_LINE
ret = MEDIA_PACKET_ERROR_INVALID_OPERATION;
}
} else {
MEDIA_PACKET_INSTANCE_CHECK(packet);
MEDIA_PACKET_NULL_ARG_CHECK(stride_height);
if (plane_idx < 0) {
- LOGE("Invalid plane_idx : %d, must not be negative number\n", plane_idx);
+ LOGE("Invalid plane_idx : %d, must not be negative number\n", plane_idx); //LCOV_EXCL_LINE
return MEDIA_PACKET_ERROR_INVALID_PARAMETER;
}
if (surface_info.num_planes > plane_idx) {
*stride_height = surface_info.planes[plane_idx].size / surface_info.planes[plane_idx].stride;
} else {
- LOGE("the plane_idx is invalid, The number of planes = %lu\n", surface_info.num_planes);
+ LOGE("the plane_idx is invalid, The number of planes = %lu\n", surface_info.num_planes); //LCOV_EXCL_LINE
*stride_height = 0;
ret = MEDIA_PACKET_ERROR_INVALID_PARAMETER;
}
} else {
*stride_height = 0;
- LOGE("tbm_surface_get_info() is failed.. 0x%08x \n", err);
+ LOGE("tbm_surface_get_info() is failed.. 0x%08x \n", err); //LCOV_EXCL_LINE
ret = MEDIA_PACKET_ERROR_INVALID_OPERATION;
}
} else {
MEDIA_PACKET_INSTANCE_CHECK(packet);
MEDIA_PACKET_NULL_ARG_CHECK(plane_data_ptr);
if (plane_idx < 0) {
- LOGE("Invalid plane_idx : %d, must not be negative number\n", plane_idx);
+ LOGE("Invalid plane_idx : %d, must not be negative number\n", plane_idx); //LCOV_EXCL_LINE
return MEDIA_PACKET_ERROR_INVALID_PARAMETER;
}
*plane_data_ptr = surface_info.planes[plane_idx].ptr;
LOGD("the tbm_surface_info.planes[%d].ptr = %p\n", plane_idx, surface_info.planes[plane_idx].ptr);
} else {
- LOGE("the plane_idx is invalid, The number of planes = %lu\n", surface_info.num_planes);
+ LOGE("the plane_idx is invalid, The number of planes = %lu\n", surface_info.num_planes); //LCOV_EXCL_LINE
*plane_data_ptr = NULL;
ret = MEDIA_PACKET_ERROR_INVALID_PARAMETER;
}
} else {
- LOGE("tbm_surface_get_info() is failed.. 0x%08x \n", err);
+ LOGE("tbm_surface_get_info() is failed.. 0x%08x \n", err); //LCOV_EXCL_LINE
*plane_data_ptr = NULL;
ret = MEDIA_PACKET_ERROR_INVALID_OPERATION;
}
handle = (media_packet_s *)packet;
- LOGI("Get: codec data = %p, codec_data_size = %u\n", handle->codec_data, handle->codec_data_size);
+ LOGI("Get: codec data = %p, codec_data_size = %u\n", handle->codec_data, handle->codec_data_size); //LCOV_EXCL_LINE
if (handle->codec_data) {
*codec_data_size = handle->codec_data_size;
/* creator do not want to destroy media packet handle */
if (finalize_cb_ret == MEDIA_PACKET_REUSE) {
- LOGI("the media packet handle will be reused.");
+ LOGI("the media packet handle will be reused."); //LCOV_EXCL_LINE
return MEDIA_PACKET_ERROR_NONE;
}
}
ret = _pkt_dealloc_buffer(handle);
if (ret != MEDIA_PACKET_ERROR_NONE) {
- LOGE("[%s] failed _pkt_dealloc_buffer(), err = (0x%08x)", __FUNCTION__, ret);
+ LOGE("[%s] failed _pkt_dealloc_buffer(), err = (0x%08x)", __FUNCTION__, ret); //LCOV_EXCL_LINE
return ret;
}
/* unreference media_format */
media_format_unref(handle->format);
- LOGI("The packet handle(%p) will be destroyed..\n", handle);
+ LOGI("The packet handle(%p) will be destroyed..\n", handle); //LCOV_EXCL_LINE
free(handle);
handle = NULL;
tbm_format = TBM_FORMAT_BGRA8888;
break;
default:
- LOGE("Invalid media format mime type!");
+ LOGE("Invalid media format mime type!"); //LCOV_EXCL_LINE
tbm_format = 0;
break;
}
if (pool_handle != NULL)
memset(pool_handle, 0, sizeof(media_packet_pool_s));
else {
- LOGE("out of memory");
+ LOGE("out of memory"); //LCOV_EXCL_LINE
ret = MEDIA_PACKET_ERROR_OUT_OF_MEMORY;
return ret;
}
pool_handle = (media_packet_pool_s *)pool;
if (!(pool_handle->pool_created)) {
- LOGE("The media packet pool is not created..");
+ LOGE("The media packet pool is not created.."); //LCOV_EXCL_LINE
return MEDIA_PACKET_ERROR_INVALID_OPERATION;
}
if (!(pool_handle->min_pool_size)) {
- LOGE("The media packet pool size is not set. set pool size...");
+ LOGE("The media packet pool size is not set. set pool size..."); //LCOV_EXCL_LINE
return MEDIA_PACKET_ERROR_INVALID_OPERATION;
}
if (pool_handle->curr_pool_size >= pool_handle->max_pool_size) {
- LOGE("The media packet pool is full..");
+ LOGE("The media packet pool is full.."); //LCOV_EXCL_LINE
return MEDIA_PACKET_ERROR_INVALID_OPERATION;
}
if (g_atomic_int_get(&pool_handle->pool_allocated)) {
- LOGE("The media packet is already allocated. set media format size...");
+ LOGE("The media packet is already allocated. set media format size..."); //LCOV_EXCL_LINE
return MEDIA_PACKET_ERROR_INVALID_OPERATION;
}
for (i = 0; i < pool_handle->min_pool_size; i++) {
if (media_packet_create_alloc(pool_handle->fmt_h, _packet_finalize_cb, pool_handle, &pool_handle->packet[i]) != MEDIA_PACKET_ERROR_NONE) {
- LOGE("The media packet pool is full or out of memory...");
+ LOGE("The media packet pool is full or out of memory..."); //LCOV_EXCL_LINE
return MEDIA_PACKET_ERROR_INVALID_OPERATION;
}
g_queue_push_tail(pool_handle->queue, pool_handle->packet[i]);
/* increase format reference count */
if (media_format_ref(pool_handle->fmt_h) != MEDIA_FORMAT_ERROR_NONE) {
- LOGE("failed to increase ref count");
+ LOGE("failed to increase ref count"); //LCOV_EXCL_LINE
return MEDIA_PACKET_ERROR_INVALID_OPERATION;
}
}
if (!g_atomic_int_get(&pool_handle->pool_allocated)) {
- LOGE("The media packet pool is not allocated...");
+ LOGE("The media packet pool is not allocated..."); //LCOV_EXCL_LINE
return MEDIA_PACKET_ERROR_INVALID_OPERATION;
}
g_mutex_lock(&pool_handle->mutex);
if (!(pool_handle->curr_pool_size)) {
g_mutex_unlock(&pool_handle->mutex);
- LOGE("The media packet pool size is not set. set pool size...");
+ LOGE("The media packet pool size is not set. set pool size..."); //LCOV_EXCL_LINE
return MEDIA_PACKET_ERROR_INVALID_OPERATION;
}
g_mutex_lock(&pool_handle->mutex);
if ((find = g_queue_find(pool_handle->queue, pkt))) {
- LOGE("unable to release '%p' to the pool. Already released", pkt);
+ LOGE("unable to release '%p' to the pool. Already released", pkt); //LCOV_EXCL_LINE
g_mutex_unlock(&pool_handle->mutex);
return MEDIA_PACKET_ERROR_INVALID_OPERATION;
}
num_pkts = g_queue_get_length(pool_handle->queue);
if (num_pkts == pool_handle->curr_pool_size) {
- LOGE("Queue is already full");
+ LOGE("Queue is already full"); //LCOV_EXCL_LINE
g_mutex_unlock(&pool_handle->mutex);
return MEDIA_PACKET_ERROR_INVALID_OPERATION;
}
g_cond_signal(&pool_handle->queue_cond);
LOGD("The packet released to pool is %p..\n", pkt);
} else {
- LOGE("packet is not aquired from pool %p", pkt);
+ LOGE("packet is not aquired from pool %p", pkt); //LCOV_EXCL_LINE
g_mutex_unlock(&pool_handle->mutex);
return MEDIA_PACKET_ERROR_INVALID_OPERATION;
}
num_pkts = g_queue_get_length(pool_handle->queue);
if (num_pkts < pool_handle->curr_pool_size) {
- LOGE("packet is being used, release the packet before deallocate");
+ LOGE("packet is being used, release the packet before deallocate"); //LCOV_EXCL_LINE
g_mutex_unlock(&pool_handle->mutex);
return MEDIA_PACKET_ERROR_INVALID_OPERATION;
}
packet = g_queue_pop_head(pool_handle->queue);
if (packet == NULL) {
- LOGE("Failed to get packet handle from Queue ");
+ LOGE("Failed to get packet handle from Queue "); //LCOV_EXCL_LINE
return MEDIA_PACKET_ERROR_INVALID_OPERATION;
}
ret = media_packet_destroy(packet);
/* unreference media_format */
if (media_format_unref(pool_handle->fmt_h) != MEDIA_FORMAT_ERROR_NONE) {
- LOGE("failed to decrease ref count");
+ LOGE("failed to decrease ref count"); //LCOV_EXCL_LINE
g_mutex_unlock(&pool_handle->mutex);
return MEDIA_PACKET_ERROR_INVALID_OPERATION;
}
g_mutex_unlock(&pool_handle->mutex);
if (num_pkts > 0) {
- LOGE("The packet pool needs to deallocate first ");
+ LOGE("The packet pool needs to deallocate first "); //LCOV_EXCL_LINE
return MEDIA_PACKET_ERROR_INVALID_OPERATION;
}