aboutsummaryrefslogtreecommitdiffstats
path: root/src/DecoderInternal.hxx
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2013-11-13 20:57:09 +0100
committerMax Kellermann <max@duempel.org>2013-11-13 20:57:13 +0100
commit4ee147ea34057c0bcef31afed55f98b025b997dc (patch)
tree7077ad343ded2228d2e2dcc6d038515d92201d87 /src/DecoderInternal.hxx
parentf1ca61d7d7fac7a0a93daa244bf86c2ae7ebabd7 (diff)
downloadmpd-4ee147ea34057c0bcef31afed55f98b025b997dc.tar.gz
mpd-4ee147ea34057c0bcef31afed55f98b025b997dc.tar.xz
mpd-4ee147ea34057c0bcef31afed55f98b025b997dc.zip
DecoderAPI: stop decoder on MPD error
This commit adds the basic infrastructure for reporting bugs from DecoderAPI.cxx via DecoderThread.cxx to DecoderControl.
Diffstat (limited to 'src/DecoderInternal.hxx')
-rw-r--r--src/DecoderInternal.hxx7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/DecoderInternal.hxx b/src/DecoderInternal.hxx
index e98e0aae3..87c6828d4 100644
--- a/src/DecoderInternal.hxx
+++ b/src/DecoderInternal.hxx
@@ -22,6 +22,7 @@
#include "DecoderCommand.hxx"
#include "ReplayGainInfo.hxx"
+#include "util/Error.hxx"
class PcmConvert;
struct DecoderControl;
@@ -87,6 +88,12 @@ struct Decoder {
*/
unsigned replay_gain_serial;
+ /**
+ * An error has occurred (in DecoderAPI.cxx), and the plugin
+ * will be asked to stop.
+ */
+ Error error;
+
Decoder(DecoderControl &_dc, bool _initial_seek_pending, Tag *_tag)
:dc(_dc),
convert(nullptr),