diff options
author | Max Kellermann <max@duempel.org> | 2014-09-06 19:32:10 +0200 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2014-09-06 19:32:10 +0200 |
commit | 7ada7def9e797deb7a34ba8da1e33e207d4ed55f (patch) | |
tree | ffdd93139918ec3ca50ef750fa65f42edb1a12b2 /src/decoder/AudiofileDecoderPlugin.cxx | |
parent | 421c4ae907e27661902f28c07c1c470c3dba3cf7 (diff) | |
download | mpd-7ada7def9e797deb7a34ba8da1e33e207d4ed55f.tar.gz mpd-7ada7def9e797deb7a34ba8da1e33e207d4ed55f.tar.xz mpd-7ada7def9e797deb7a34ba8da1e33e207d4ed55f.zip |
decoder/audiofile: fix crash after seeking
Log call was added to the wrong branch.
Fixes regression by commit ca1a1149
Diffstat (limited to '')
-rw-r--r-- | src/decoder/AudiofileDecoderPlugin.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
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; } } |