185
189
stats = calloc(NUM_STATS + 1, sizeof(stat_format_t)); /* One extra for end flag */
191
195
cur = stats + 0; /* currently playing file / stream */
195
199
cur->type = stat_stringarg;
197
201
cur = stats + 1; /* current playback time (preformatted) */
201
205
cur->type = stat_stringarg;
202
206
cur->arg.stringarg = calloc(TIME_STR_SIZE, sizeof(char));
204
208
if (cur->arg.stringarg == NULL) {
208
212
write_time_string(cur->arg.stringarg, 0.0);