From 7ada7def9e797deb7a34ba8da1e33e207d4ed55f Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Sat, 6 Sep 2014 19:32:10 +0200 Subject: decoder/audiofile: fix crash after seeking Log call was added to the wrong branch. Fixes regression by commit ca1a1149 --- src/decoder/AudiofileDecoderPlugin.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/decoder/AudiofileDecoderPlugin.cxx') diff --git a/src/decoder/AudiofileDecoderPlugin.cxx b/src/decoder/AudiofileDecoderPlugin.cxx index 9f097f90b..b1b8bf613 100644 --- a/src/decoder/AudiofileDecoderPlugin.cxx +++ b/src/decoder/AudiofileDecoderPlugin.cxx @@ -110,9 +110,9 @@ audiofile_file_seek(AFvirtualfile *vfile, AFfileoffset offset, int is_relative) Error error; if (is.LockSeek(offset, whence, error)) { - LogError(error, "Seek failed"); return is.GetOffset(); } else { + LogError(error, "Seek failed"); return -1; } } -- cgit v1.2.3