utils: Move duration formatting to shared function

We'll be using this a few different places.
This commit is contained in:
Justin Maggard
2017-05-17 11:56:44 -07:00
parent 49aa42d893
commit 2b3bdb8373
3 changed files with 29 additions and 25 deletions

View File

@ -5,7 +5,7 @@
* Author : Justin Maggard
*
* MiniDLNA media server
* Copyright (C) 2008-2009 Justin Maggard
* Copyright (C) 2008-2017 Justin Maggard
*
* This file is part of MiniDLNA.
*
@ -80,6 +80,7 @@ char *strcasestrc(const char *s, const char *p, const char t);
char *modifyString(char *string, const char *before, const char *after, int noalloc);
char *escape_tag(const char *tag, int force_alloc);
char *unescape_tag(const char *tag, int force_alloc);
char *duration_str(int msec);
char *strip_ext(char *name);
/* Metadata functions */