Change-Id: Iebb50b802a5e286d8ac9480fff34e76b992a3496
Name: capi-media-tool
Summary: A Core API media tool library in Tizen Native API
Version: 0.1.8
-Release: 2
+Release: 3
Group: Multimedia/API
License: Apache-2.0
Source0: %{name}-%{version}.tar.gz
break;
} else {
- g_cond_wait_until(&pool_handle->queue_cond, &pool_handle->mutex, wait_until);
+ if (!g_cond_wait_until(&pool_handle->queue_cond, &pool_handle->mutex, wait_until)) {
+ LOGW("signal not received");
+ break;
+ }
LOGD("Queue is Empty, waiting for timeout %" G_GSIZE_FORMAT "", wait_until);
packet = g_queue_pop_head(pool_handle->queue);
if (!packet) {
{
void *ptr;
media_packet_s *packet = g_media_packet[0];
- ptr = (void *)malloc(sizeof(packet->size));
-
- if (ptr)
- memset(packet, 0, sizeof(packet->size));
- else
- g_print("_get_buffer_ptr , malloc failed...");
if (media_packet_get_buffer_data_ptr(g_media_packet[0], &ptr) == MEDIA_PACKET_ERROR_NONE) {
g_print("media_packet_get_buffer_data_ptr is sucess!!");