From 29030b54c98b0aee65fbc10ebf7ba36bed98c02c Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Sat, 10 Aug 2013 18:02:44 +0200 Subject: util/Error: new error passing library Replaces GLib's GError. --- src/decoder/DsdLib.cxx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/decoder/DsdLib.cxx') 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 #include @@ -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) { -- cgit v1.2.3