You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

34 lines
564 B

#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