sectionsd: add hack to avoid bogus error messages on triple

This commit is contained in:
Stefan Seyfried
2015-02-06 20:48:07 +01:00
parent 1bc874ddb5
commit 459f177cbb

View File

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