]> git.tuebingen.mpg.de Git - paraslash.git/blobdiff - audiod.c
Rename length status item to seconds_total and print it only once.
[paraslash.git] / audiod.c
index 38aa5aafba75bcf7c67418ab7035f9eb0dbe11ff..f7e481b4c66be206785e1043eb8a59e733938069 100644 (file)
--- a/audiod.c
+++ b/audiod.c
@@ -118,6 +118,9 @@ struct command_task {
 int get_audio_format_num(char *name)
 {
        int i;
+
+       while (isspace(*name))
+               name++;
        FOR_EACH_AUDIO_FORMAT(i)
                if (!strcmp(name, audio_formats[i]))
                        return i;
@@ -516,7 +519,7 @@ static int check_stat_line(char *line, __a_unused void *data)
        case SI_OFFSET:
                stat_task->offset_seconds = atoi(line + ilen + 1);
                break;
-       case SI_LENGTH:
+       case SI_SECONDS_TOTAL:
                stat_task->length_seconds = atoi(line + ilen + 1);
                break;
        case SI_STREAM_START: