X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;ds=sidebyside;f=src%2Fplugin.c;h=f9049ecfa77458285c07da66f4946f542a1b4959;hb=36e3f4589afc5bf3d17c0584719a86a577340fa0;hp=dcca7b817d4a345a3d181a6ec5dfca74a83023a6;hpb=361ff65912b06f6d51bab804d7da8b613736ed2e;p=ncmpc.git diff --git a/src/plugin.c b/src/plugin.c index dcca7b8..f9049ec 100644 --- a/src/plugin.c +++ b/src/plugin.c @@ -216,7 +216,7 @@ plugin_fd_add(struct plugin_cycle *cycle, struct plugin_pipe *p, int fd) p->data = g_string_new(NULL); GIOChannel *channel = g_io_channel_unix_new(fd); p->event_id = g_io_add_watch(channel, G_IO_IN|G_IO_HUP, - plugin_data, cycle); + plugin_data, p); g_io_channel_unref(channel); }