aboutsummaryrefslogtreecommitdiffstats
path: root/src/player
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2015-11-11 17:20:27 +0100
committerMax Kellermann <max@duempel.org>2015-11-11 19:56:08 +0100
commitfaca8bc02a67ed06e60a4d827d5d7bb69027b4f3 (patch)
tree7ee84be6f74ed503dfa9468487026a121b6891ee /src/player
parent5e93c05095eff2385f02fa946fdb2e97353b1843 (diff)
downloadmpd-faca8bc02a67ed06e60a4d827d5d7bb69027b4f3.tar.gz
mpd-faca8bc02a67ed06e60a4d827d5d7bb69027b4f3.tar.xz
mpd-faca8bc02a67ed06e60a4d827d5d7bb69027b4f3.zip
decoder/Control: Seek() returns Error information
Diffstat (limited to 'src/player')
-rw-r--r--src/player/Thread.cxx4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/player/Thread.cxx b/src/player/Thread.cxx
index 9a5732ada..20ffcb069 100644
--- a/src/player/Thread.cxx
+++ b/src/player/Thread.cxx
@@ -605,8 +605,10 @@ Player::SeekDecoder()
where = total_time;
}
- if (!dc.Seek(where + start_time)) {
+ Error error;
+ if (!dc.Seek(where + start_time, error)) {
/* decoder failure */
+ pc.SetError(PlayerError::DECODER, std::move(error));
pc.LockCommandFinished();
return false;
}