X-Git-Url: http://git.tuebingen.mpg.de/?a=blobdiff_plain;f=mood.c;h=bafe710c09372a7e8a1f82168324d9a64a0e633e;hb=9f58f76988085e31f3211a4f4735bacf537fafff;hp=c892ff5c15fcfb8abfe8a11fe0a85911f073c740;hpb=68cb0aef88594f3dea1f7dfdc279f125bf5bbecc;p=paraslash.git diff --git a/mood.c b/mood.c index c892ff5c..bafe710c 100644 --- a/mood.c +++ b/mood.c @@ -17,6 +17,7 @@ #include "list.h" #include "ipc.h" #include "mm.h" +#include "sideband.h" /** * Contains statistical data of the currently admissible audio files. @@ -427,6 +428,7 @@ void mood_check_callback(int fd, __a_unused const struct osl_object *query) .max_size = shm_get_shmmax(), .private_data = &(struct afs_max_size_handler_data) { .fd = fd, + .band = SBD_OUTPUT }, .max_size_handler = afs_max_size_handler }; @@ -437,7 +439,7 @@ void mood_check_callback(int fd, __a_unused const struct osl_object *query) osl_rbtree_loop(moods_table, BLOBCOL_ID, &pb, check_mood); if (pb.offset) - pass_buffer_as_shm(pb.buf, pb.offset, &fd); + pass_buffer_as_shm(fd, SBD_OUTPUT, pb.buf, pb.offset); free(pb.buf); }