diff options
author | Max Kellermann <max@duempel.org> | 2013-08-10 18:02:44 +0200 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2013-09-04 18:14:22 +0200 |
commit | 29030b54c98b0aee65fbc10ebf7ba36bed98c02c (patch) | |
tree | 79766830b55ebca38ddbce84d8d548227eedb69e /src/encoder/NullEncoderPlugin.cxx | |
parent | c9fcc7f14860777458153eb2d13c773ccfa1daa2 (diff) | |
download | mpd-29030b54c98b0aee65fbc10ebf7ba36bed98c02c.tar.gz mpd-29030b54c98b0aee65fbc10ebf7ba36bed98c02c.tar.xz mpd-29030b54c98b0aee65fbc10ebf7ba36bed98c02c.zip |
util/Error: new error passing library
Replaces GLib's GError.
Diffstat (limited to 'src/encoder/NullEncoderPlugin.cxx')
-rw-r--r-- | src/encoder/NullEncoderPlugin.cxx | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/src/encoder/NullEncoderPlugin.cxx b/src/encoder/NullEncoderPlugin.cxx index 5c01fbd98..38bc5cbe3 100644 --- a/src/encoder/NullEncoderPlugin.cxx +++ b/src/encoder/NullEncoderPlugin.cxx @@ -26,8 +26,6 @@ extern "C" { } #include "gcc.h" -#include <glib.h> - #include <assert.h> #include <string.h> @@ -41,7 +39,7 @@ struct NullEncoder final { static Encoder * null_encoder_init(gcc_unused const config_param ¶m, - gcc_unused GError **error) + gcc_unused Error &error) { NullEncoder *encoder = new NullEncoder(); return &encoder->encoder; @@ -67,7 +65,7 @@ null_encoder_close(Encoder *_encoder) static bool null_encoder_open(Encoder *_encoder, gcc_unused AudioFormat &audio_format, - gcc_unused GError **error) + gcc_unused Error &error) { NullEncoder *encoder = (NullEncoder *)_encoder; encoder->buffer = growing_fifo_new(); @@ -77,7 +75,7 @@ null_encoder_open(Encoder *_encoder, static bool null_encoder_write(Encoder *_encoder, const void *data, size_t length, - gcc_unused GError **error) + gcc_unused Error &error) { NullEncoder *encoder = (NullEncoder *)_encoder; |