diff options
author | Eunhae Choi <eunhae1.choi@samsung.com> | 2017-08-08 20:00:31 +0900 |
---|---|---|
committer | Eunhae Choi <eunhae1.choi@samsung.com> | 2017-08-08 20:00:31 +0900 |
commit | 40e183e27f3dd006eb1688b2e3290a1ef7795b3d (patch) | |
tree | 664b53cf8ab4b5af40fa7ab1a96ac856c59750f7 | |
parent | 0f126cd4cb8379bb07fe125b81962414463c9475 (diff) | |
download | libmm-player-40e183e27f3dd006eb1688b2e3290a1ef7795b3d.tar.gz libmm-player-40e183e27f3dd006eb1688b2e3290a1ef7795b3d.tar.bz2 libmm-player-40e183e27f3dd006eb1688b2e3290a1ef7795b3d.zip |
[0.6.58] use floor for start_persubmit/tizen/20170809.031401accepted/tizen/unified/20170809.135308
Change-Id: I5b7b165b8b1a54d7539d0a985753e2dc263e72eb
-rw-r--r-- | src/mm_player_priv.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mm_player_priv.c b/src/mm_player_priv.c index 474aec4..710c200 100644 --- a/src/mm_player_priv.c +++ b/src/mm_player_priv.c @@ -7797,7 +7797,7 @@ static int __gst_get_buffer_position(mm_player_t* player, int format, unsigned l position, (guint)(content_size_time/GST_SECOND), content_size_bytes); mainbin = player->pipeline->mainbin; - start_per = (gint)(ceil(100 *(gdouble)(position*GST_MSECOND) / (gdouble)content_size_time)); + start_per = (gint)(floor(100 *(gdouble)(position*GST_MSECOND) / (gdouble)content_size_time)); if (mainbin[MMPLAYER_M_MUXED_S_BUFFER].gst) { GstQuery *query = NULL; |