summaryrefslogtreecommitdiff
path: root/src/decoder/plugins/FlacIOHandle.cxx
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2016-06-13 18:37:45 +0200
committerMax Kellermann <max@duempel.org>2016-06-13 18:37:45 +0200
commit4ecd32537104f494062eea91b7e03e87a70c917c (patch)
treee8493ca0db9e166ee02a80d10817162392ab5f81 /src/decoder/plugins/FlacIOHandle.cxx
parent5771d67202b0a7b155b4859e57a15118473443ef (diff)
decoder/flac: log seek errors
Diffstat (limited to 'src/decoder/plugins/FlacIOHandle.cxx')
-rw-r--r--src/decoder/plugins/FlacIOHandle.cxx9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/decoder/plugins/FlacIOHandle.cxx b/src/decoder/plugins/FlacIOHandle.cxx
index 0dd895798..875387d66 100644
--- a/src/decoder/plugins/FlacIOHandle.cxx
+++ b/src/decoder/plugins/FlacIOHandle.cxx
@@ -20,6 +20,7 @@
#include "config.h"
#include "FlacIOHandle.hxx"
#include "util/Error.hxx"
+#include "Log.hxx"
#include "Compiler.h"
#include <errno.h>
@@ -87,7 +88,13 @@ FlacIOSeek(FLAC__IOHandle handle, FLAC__int64 _offset, int whence)
return -1;
}
- return is->LockSeek(offset, IgnoreError()) ? 0 : -1;
+ Error error;
+ if (!is->LockSeek(offset, error)) {
+ LogError(error);
+ return -1;
+ }
+
+ return 0;
}
static FLAC__int64