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 */