diff options
author | Max Kellermann <max@duempel.org> | 2015-11-11 17:20:27 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2015-11-11 19:56:08 +0100 |
commit | faca8bc02a67ed06e60a4d827d5d7bb69027b4f3 (patch) | |
tree | 7ee84be6f74ed503dfa9468487026a121b6891ee /src/player | |
parent | 5e93c05095eff2385f02fa946fdb2e97353b1843 (diff) | |
download | mpd-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.cxx | 4 |
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; } |