From 4ee147ea34057c0bcef31afed55f98b025b997dc Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Wed, 13 Nov 2013 20:57:09 +0100 Subject: DecoderAPI: stop decoder on MPD error This commit adds the basic infrastructure for reporting bugs from DecoderAPI.cxx via DecoderThread.cxx to DecoderControl. --- src/DecoderInternal.hxx | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/DecoderInternal.hxx') 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), -- cgit v1.2.3