Commit 8b903626 authored by Max Kellermann's avatar Max Kellermann

Merge tag 'v0.19.16'

release v0.19.16
parents 021519f2 faf0c950
...@@ -2331,8 +2331,9 @@ EXTRA_DIST = $(doc_DATA) autogen.sh \ ...@@ -2331,8 +2331,9 @@ EXTRA_DIST = $(doc_DATA) autogen.sh \
test/test_archive_bzip2.sh \ test/test_archive_bzip2.sh \
test/test_archive_iso9660.sh \ test/test_archive_iso9660.sh \
test/test_archive_zzip.sh \ test/test_archive_zzip.sh \
$(wildcard scripts/*.sh) \ $(wildcard $(srcdir)/scripts/*.rb) \
$(man_MANS) $(DOCBOOK_FILES) doc/mpdconf.example doc/doxygen.conf \ $(man_MANS) $(DOCBOOK_FILES) doc/mpdconf.example doc/doxygen.conf \
$(wildcard $(srcdir)/doc/include/*.xml) \
systemd/mpd.socket \ systemd/mpd.socket \
android/AndroidManifest.xml \ android/AndroidManifest.xml \
android/build.py \ android/build.py \
......
...@@ -53,6 +53,11 @@ ver 0.20 (not yet released) ...@@ -53,6 +53,11 @@ ver 0.20 (not yet released)
* update * update
- apply .mpdignore matches to subdirectories - apply .mpdignore matches to subdirectories
ver 0.19.16 (2016/06/13)
* faster seeking
* fix system include path order
* add missing DocBook file to tarball
ver 0.19.15 (2016/04/30) ver 0.19.15 (2016/04/30)
* decoder * decoder
- ffmpeg: support FFmpeg 3.0 - ffmpeg: support FFmpeg 3.0
......
...@@ -20,6 +20,7 @@ ...@@ -20,6 +20,7 @@
#include "config.h" #include "config.h"
#include "FlacIOHandle.hxx" #include "FlacIOHandle.hxx"
#include "util/Error.hxx" #include "util/Error.hxx"
#include "Log.hxx"
#include "Compiler.h" #include "Compiler.h"
#include <errno.h> #include <errno.h>
...@@ -87,7 +88,13 @@ FlacIOSeek(FLAC__IOHandle handle, FLAC__int64 _offset, int whence) ...@@ -87,7 +88,13 @@ FlacIOSeek(FLAC__IOHandle handle, FLAC__int64 _offset, int whence)
return -1; 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 static FLAC__int64
......
...@@ -565,6 +565,8 @@ Player::SeekDecoder() ...@@ -565,6 +565,8 @@ Player::SeekDecoder()
{ {
assert(pc.next_song != nullptr); assert(pc.next_song != nullptr);
pc.outputs.Cancel();
const SongTime start_time = pc.next_song->GetStartTime(); const SongTime start_time = pc.next_song->GetStartTime();
if (!dc.LockIsCurrentSong(*pc.next_song)) { if (!dc.LockIsCurrentSong(*pc.next_song)) {
...@@ -628,8 +630,6 @@ Player::SeekDecoder() ...@@ -628,8 +630,6 @@ Player::SeekDecoder()
/* re-fill the buffer after seeking */ /* re-fill the buffer after seeking */
buffering = true; buffering = true;
pc.outputs.Cancel();
return true; return true;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment