]> git.tuebingen.mpg.de Git - paraslash.git/blobdiff - command.c
Get rid of mmd->audio_format.
[paraslash.git] / command.c
index 22e3aa94b7b1d037d1e2625577d55931f39baae9..977e45673086fc517237fa2099e7803c61f94149 100644 (file)
--- a/command.c
+++ b/command.c
@@ -104,10 +104,8 @@ static char *get_status(struct misc_meta_data *nmmd)
        struct timeval now;
        struct tm mtime_tm;
 
-       if (nmmd->audio_format >= 0) {
-               localtime_r(&nmmd->mtime, &mtime_tm);
-               strftime(mtime, 29, "%a %b %d %Y", &mtime_tm);
-       }
+       localtime_r(&nmmd->mtime, &mtime_tm);
+       strftime(mtime, 29, "%a %b %d %Y", &mtime_tm);
        /* report real status */
        status = vss_status_tohuman(nmmd->vss_status_flags);
        flags = vss_get_status_flags(nmmd->vss_status_flags);
@@ -129,7 +127,7 @@ static char *get_status(struct misc_meta_data *nmmd)
                status_item_list[SI_SELECTOR], "FIXME",
 
                status_item_list[SI_OFFSET], offset,
-               status_item_list[SI_FORMAT], audio_format_name(nmmd->audio_format),
+               status_item_list[SI_FORMAT], audio_format_name(nmmd->afd.afsi.audio_format_id),
                status_item_list[SI_AFS_MODE], mmd->afs_mode_string,
                nmmd->afd.afhi.info_string,