From: Gilbok Lee Date: Thu, 18 Apr 2019 01:49:31 +0000 (+0900) Subject: [0.6.183] Fix bug that calculates the stream elevation value X-Git-Tag: submit/tizen/20190419.043449~3 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=729e6d45745ed4720fe296be653d3751c205f2bd;p=platform%2Fcore%2Fmultimedia%2Flibmm-player.git [0.6.183] Fix bug that calculates the stream elevation value Change-Id: Ie1f3ae24ea17e9ee5339a5319417cf964aa68573 --- diff --git a/packaging/libmm-player.spec b/packaging/libmm-player.spec index a2d48f3..855c6ae 100644 --- a/packaging/libmm-player.spec +++ b/packaging/libmm-player.spec @@ -1,6 +1,6 @@ Name: libmm-player Summary: Multimedia Framework Player Library -Version: 0.6.182 +Version: 0.6.183 Release: 0 Group: Multimedia/Libraries License: Apache-2.0 diff --git a/src/mm_player_priv.c b/src/mm_player_priv.c index 8b97b92..4f65f40 100644 --- a/src/mm_player_priv.c +++ b/src/mm_player_priv.c @@ -9208,6 +9208,7 @@ static void __mmplayer_zerocopy_set_stride_elevation_bo(mmplayer_video_decoded_data_info_t *stream, GstMemory *mem) { unsigned int pitch = 0; + unsigned int size = 0; int index = 0; tbm_surface_h surface = gst_tizen_memory_get_surface(mem); tbm_bo bo = NULL; @@ -9221,9 +9222,12 @@ __mmplayer_zerocopy_set_stride_elevation_bo(mmplayer_video_decoded_data_info_t * } for (index = 0; index < stream->plane_num; index++) { - tbm_surface_internal_get_plane_data(surface, index, NULL, NULL, &pitch); + tbm_surface_internal_get_plane_data(surface, index, &size, NULL, &pitch); stream->stride[index] = pitch; - stream->elevation[index] = stream->height; + if (pitch) + stream->elevation[index] = size / pitch; + else + stream->elevation[index] = stream->height; } }