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/FlacInput.cxx | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/decoder/FlacInput.cxx') diff --git a/src/decoder/FlacInput.cxx b/src/decoder/FlacInput.cxx index 0bb5ec7d7..46f213787 100644 --- a/src/decoder/FlacInput.cxx +++ b/src/decoder/FlacInput.cxx @@ -20,8 +20,9 @@ #include "config.h" #include "FlacInput.hxx" #include "DecoderAPI.hxx" -#include "gcc.h" #include "InputStream.hxx" +#include "util/Error.hxx" +#include "gcc.h" FLAC__StreamDecoderReadStatus FlacInput::Read(FLAC__byte buffer[], size_t *bytes) @@ -47,9 +48,10 @@ FlacInput::Seek(FLAC__uint64 absolute_byte_offset) if (!input_stream->seekable) return FLAC__STREAM_DECODER_SEEK_STATUS_UNSUPPORTED; + ::Error error; if (!input_stream_lock_seek(input_stream, absolute_byte_offset, SEEK_SET, - nullptr)) + error)) return FLAC__STREAM_DECODER_SEEK_STATUS_ERROR; return FLAC__STREAM_DECODER_SEEK_STATUS_OK; -- cgit v1.2.3