- the number of exported buffer have to be
less than the extra buffer size
Change-Id: I9171f948c1e48cc599bd7d1c5fb26739657d9859
orientation = video_stream->orientation;
g_mutex_lock(&muse_player->list_lock);
- if (g_list_length(muse_player->video_data_list) > muse_player->extra_size_of_buffers) {
+ if (g_list_length(muse_player->video_data_list) >= muse_player->extra_size_of_buffers) {
LOGE("Too many buffers are not released. video(%p) will be drop.", video_data);
g_mutex_unlock(&muse_player->list_lock);
goto ERROR;