music control - handle length < 0

This commit is contained in:
Carsten Haitzler 2021-01-09 04:10:03 +00:00
parent 246d28d3bf
commit 6ec7dd8a69
1 changed files with 1 additions and 0 deletions

View File

@ -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);