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/decoder/DsdLib.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 '')
-rw-r--r-- | src/decoder/DsdLib.cxx | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/decoder/DsdLib.cxx b/src/decoder/DsdLib.cxx index d18131184..a9cfc9147 100644 --- a/src/decoder/DsdLib.cxx +++ b/src/decoder/DsdLib.cxx @@ -29,6 +29,7 @@ #include "util/bit_reverse.h" #include "TagHandler.hxx" #include "TagId3.hxx" +#include "util/Error.hxx" #include <unistd.h> #include <string.h> @@ -64,7 +65,7 @@ dsdlib_skip_to(struct decoder *decoder, struct input_stream *is, goffset offset) { if (input_stream_is_seekable(is)) - return input_stream_seek(is, offset, SEEK_SET, nullptr); + return input_stream_seek(is, offset, SEEK_SET, IgnoreError()); if (input_stream_get_offset(is) > offset) return false; @@ -97,7 +98,7 @@ dsdlib_skip(struct decoder *decoder, struct input_stream *is, return true; if (input_stream_is_seekable(is)) - return input_stream_seek(is, delta, SEEK_CUR, nullptr); + return input_stream_seek(is, delta, SEEK_CUR, IgnoreError()); char buffer[8192]; while (delta > 0) { |