skip writing new packet, when many buffers are not released 16/64216/1 accepted/tizen/common/20160331.051628 accepted/tizen/ivi/20160330.135700 accepted/tizen/mobile/20160330.135555 accepted/tizen/tv/20160330.135614 accepted/tizen/wearable/20160330.135629 submit/tizen/20160330.133751
authorNAMJEONGYOON <just.nam@samsung.com>
Wed, 30 Mar 2016 12:36:35 +0000 (21:36 +0900)
committerNAMJEONGYOON <just.nam@samsung.com>
Wed, 30 Mar 2016 12:37:24 +0000 (21:37 +0900)
Change-Id: I6f5952d573ca1c5731e22a623d12f758b07e653c

src/player_evas.c

index 743bd24cfe22e395e571856e0e5ff84d4cedfee4..1cc6a9a88a89a9afd0d49cef48e34bbddeb511a6 100644 (file)
@@ -411,13 +411,16 @@ void decoded_callback_for_evas (media_packet_h packet, void *data)
        /* currently we are always checking it */
        if(has && _get_video_size(packet, handle)) {
                /* Attention! if this error occurs, we need to consider managing buffer */
-               if(handle->sent_buffer_cnt>4) {
+               if(handle->sent_buffer_cnt>14) {
                        LOGE("too many buffers are not released %d", handle->sent_buffer_cnt);
+                       goto ERROR;
+#if 0
                        /* FIXME: fix this logic */
                        /* destroy all media packets and reset pipe at present */
                        g_mutex_lock (&handle->free_lock);
                        _reset_pipe(handle);
                        g_mutex_unlock (&handle->free_lock);
+#endif
                }
                handle->cur_idx = _find_empty_index(handle);
                if(handle->cur_idx == -1)