diff options
author | Max Kellermann <max@duempel.org> | 2009-02-26 22:04:59 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2009-02-26 22:04:59 +0100 |
commit | ec926539a3a7a09b310e74a4fc84902e0971b29d (patch) | |
tree | 9ce6a1c94f45bc740648b3b4995375844a02ccf0 /src/output/null_plugin.c | |
parent | 353ae5e558c2dbdc7f9e148a14d8ffa0431e88de (diff) | |
download | mpd-ec926539a3a7a09b310e74a4fc84902e0971b29d.tar.gz mpd-ec926539a3a7a09b310e74a4fc84902e0971b29d.tar.xz mpd-ec926539a3a7a09b310e74a4fc84902e0971b29d.zip |
output_plugin: report errors with GError
Use GLib's GError library for reporting output device failures.
Note that some init() methods don't clean up properly after a failure,
but that's ok for now, because the MPD core will abort anyway.
Diffstat (limited to 'src/output/null_plugin.c')
-rw-r--r-- | src/output/null_plugin.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/output/null_plugin.c b/src/output/null_plugin.c index a10f5e45f..03a4b7fac 100644 --- a/src/output/null_plugin.c +++ b/src/output/null_plugin.c @@ -31,7 +31,8 @@ struct null_data { static void * null_init(G_GNUC_UNUSED const struct audio_format *audio_format, - G_GNUC_UNUSED const struct config_param *param) + G_GNUC_UNUSED const struct config_param *param, + G_GNUC_UNUSED GError **error) { struct null_data *nd = g_new(struct null_data, 1); @@ -52,7 +53,8 @@ null_finish(void *data) } static bool -null_open(void *data, struct audio_format *audio_format) +null_open(void *data, struct audio_format *audio_format, + G_GNUC_UNUSED GError **error) { struct null_data *nd = data; @@ -74,7 +76,8 @@ null_close(void *data) } static size_t -null_play(void *data, G_GNUC_UNUSED const void *chunk, size_t size) +null_play(void *data, G_GNUC_UNUSED const void *chunk, size_t size, + G_GNUC_UNUSED GError **error) { struct null_data *nd = data; Timer *timer = nd->timer; |