X-Git-Url: http://git.tuebingen.mpg.de/?p=paraslash.git;a=blobdiff_plain;f=play.c;h=fac551aa161d14f258e1495a4530462ca1146357;hp=108db598a51ebb28f72cb03a10c31ebfcb44ca6e;hb=21c6e0b09b42e61e72b741bd726856ab0bcd1d64;hpb=efad222b6321fe7964d89c1d28c3b4ff05873eca diff --git a/play.c b/play.c index 108db598..fac551aa 100644 --- a/play.c +++ b/play.c @@ -36,6 +36,9 @@ * Playlist handling is done exclusively in play context. */ +/** Array of error strings. */ +DEFINE_PARA_ERRLIST; + /** * Describes a request to change the state of para_play. * @@ -95,9 +98,6 @@ struct play_task { char *afhi_txt; }; -/** Initialize the array of errors for para_play. */ -INIT_PLAY_ERRLISTS; - /* Activate the afh receiver. */ extern void afh_recv_init(struct receiver *r); #undef AFH_RECEIVER @@ -788,7 +788,7 @@ static void list_file(struct play_task *pt, int num) char *buf; size_t sz; - sz = xasprintf(&buf, "%s %4u %s\n", num == pt->current_file? + sz = xasprintf(&buf, "%s %4d %s\n", num == pt->current_file? "*" : " ", num, conf.inputs[num]); btr_add_output(buf, sz, pt->btrn); }