rimmed pushed a commit to branch master.

http://git.enlightenment.org/tools/eflete.git/commit/?id=e51d6332937ccafd3b986890bb52ba8c854eb0a7

commit e51d6332937ccafd3b986890bb52ba8c854eb0a7
Author: Mykyta Biliavskyi <m.biliavs...@samsung.com>
Date:   Thu Sep 22 16:57:06 2016 +0300

    Sound player: do not use float values for indicate sound lenght.
    
    @svace WGID 20229
    @fix
---
 src/bin/ui/sound_player/sound_player.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/bin/ui/sound_player/sound_player.c 
b/src/bin/ui/sound_player/sound_player.c
index 6c73411..f5d317d 100644
--- a/src/bin/ui/sound_player/sound_player.c
+++ b/src/bin/ui/sound_player/sound_player.c
@@ -83,7 +83,7 @@ _player_units_format(double val)
 {
    char *units = mem_malloc(sizeof(char) * 16);
    int tmp = (int)val;
-   snprintf(units, 16, "%02.0f:%02.0f", (double)(tmp / 60), (double)(tmp % 
60));
+   snprintf(units, 16, "%02d:%02d", (int)(tmp / 60), (tmp % 60));
    return units;
 }
 

-- 


Reply via email to