From: Andre Noll Date: Tue, 22 Dec 2015 21:26:28 +0000 (+0000) Subject: audiod: Simplify get_time_string() X-Git-Tag: v0.5.6~21^2~3 X-Git-Url: http://git.tuebingen.mpg.de/?p=paraslash.git;a=commitdiff_plain;h=a7b65e41e2062c44c535f7cb4609e7988fc8ac0d;hp=82d34d62888bc4d7b2d06ce52d66d6fc79af6034 audiod: Simplify get_time_string() The function does the right thing if audiod is on but there is no slot info available. Kill the special casing. --- diff --git a/audiod.c b/audiod.c index 798142f3..8b9422bc 100644 --- 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