From 459f177cbbb0e10deb1c1ae65f81b5c34de75c4a Mon Sep 17 00:00:00 2001 From: Stefan Seyfried Date: Fri, 6 Feb 2015 20:48:07 +0100 Subject: [PATCH] sectionsd: add hack to avoid bogus error messages on triple --- src/eitd/dmx.h | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/eitd/dmx.h b/src/eitd/dmx.h index 33cb55621..5444b3bf9 100644 --- a/src/eitd/dmx.h +++ b/src/eitd/dmx.h @@ -68,7 +68,16 @@ protected: bool seen_section; inline bool isOpen(void) { +#if HAVE_TRIPLEDRAGON + /* unfortunately, this is a bit complicated on TD :-( */ + if (dmx == NULL) + return false; + if (dmx->getBuffer() != NULL) /* getBuffer() is a dummy to indicate that demux is running */ + return true; + return false; +#else return (dmx != NULL); +#endif } int immediate_start(void); /* mutex must be locked before and unlocked after this method */