raster pushed a commit to branch master.

http://git.enlightenment.org/core/enlightenment.git/commit/?id=6ec7dd8a6995ccd3e0783575ba3ce0fa93c88e3e

commit 6ec7dd8a6995ccd3e0783575ba3ce0fa93c88e3e
Author: Carsten Haitzler (Rasterman) <ras...@rasterman.com>
Date:   Sat Jan 9 04:10:03 2021 +0000

    music control - handle length < 0
---
 src/modules/music-control/e_mod_main.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/modules/music-control/e_mod_main.c 
b/src/modules/music-control/e_mod_main.c
index bc162621b..127ff13f0 100644
--- a/src/modules/music-control/e_mod_main.c
+++ b/src/modules/music-control/e_mod_main.c
@@ -325,6 +325,7 @@ parse_metadata(E_Music_Control_Module_Context *ctxt, 
Eina_Value *array)
                   if (eina_value_struct_value_get(&st, "arg1", &subst) &&
                       eina_value_struct_get(&subst, "arg0", &llval))
                     {
+                       if (llval < 0) llval = 0;
                        ctxt->meta_length = (double)llval / 1000000.0;
                     }
                   eina_value_flush(&subst);

-- 


Reply via email to