#include "path.h" namespace mtx { Path::Path(const PathConf & conf, const Conf & global) : MediaPath(conf.name, conf.record, global), m_conf(conf), m_fullConf(global) {} Path::~Path() { stop(); } void Path::start() { m_pSource.reset(new RtspSource(m_conf, m_fullConf, this)); m_pSource->start(); } void Path::stop() { if (m_pSource) { m_pSource->stop(); // calls sourceSetNotReady() if it was ready m_pSource.reset(); } } PathInfo Path::info() const { PathInfo tI = MediaPath::info(); tI.source = m_conf.source; return tI; } } // namespace mtx