X-Git-Url: http://git.tuebingen.mpg.de/?p=paraslash.git;a=blobdiff_plain;f=playlist.c;h=9616ed0f0dd6dc9a215e4782375cd6fa081f187d;hp=4b2d17c0b782bc677b69f08cac58402bfc3c0cb6;hb=9cc91f2d8d746e77947eeb2fd7af711a43c3a56a;hpb=59a4f545566f77a22a8c27ece5155ecd154d4145 diff --git a/playlist.c b/playlist.c index 4b2d17c0..9616ed0f 100644 --- a/playlist.c +++ b/playlist.c @@ -131,20 +131,9 @@ static int check_playlist(struct osl_row *row, void *data) */ int playlist_check_callback(struct afs_callback_arg *aca) { - int ret; - struct para_buffer pb = { - .max_size = shm_get_shmmax(), - .private_data = &(struct afs_max_size_handler_data) { - .fd = aca->fd, - .band = SBD_OUTPUT - }, - .max_size_handler = afs_max_size_handler, - }; - para_printf(&pb, "checking playlists...\n"); - ret = osl(osl_rbtree_loop(playlists_table, BLOBCOL_ID, &pb, + para_printf(&aca->pbout, "checking playlists...\n"); + return osl(osl_rbtree_loop(playlists_table, BLOBCOL_ID, &aca->pbout, check_playlist)); - flush_and_free_pb(&pb); - return ret; } /**