audiod: Simplify get_time_string()
authorAndre Noll <maan@tuebingen.mpg.de>
Tue, 22 Dec 2015 21:26:28 +0000 (21:26 +0000)
committerAndre Noll <maan@tuebingen.mpg.de>
Sat, 26 Mar 2016 22:16:22 +0000 (22:16 +0000)
The function does the right thing if audiod is on but there is no
slot info available. Kill the special casing.

audiod.c

index 798142f39a348ec6f0ac74e689332d18a1318444..8b9422bc322b8c989a9f04456dd1d50253f68e5d 100644 (file)
--- a/audiod.c
+++ b/audiod.c
@@ -326,8 +326,6 @@ char *get_time_string(void)
                        return NULL;
                goto empty; /* stopped */
        }
-       if (audiod_status == AUDIOD_ON && !s)
-               goto empty;
        /*
         * Valid status items and playing, set length and tmp to the stream
         * start. We use the slot info and fall back to the info from current