add addsession with one seesion instead of a lsit

pull/214/head
mpromonet 4 years ago
parent d7dd3fa0c4
commit bee3001133

@ -42,6 +42,15 @@ class V4l2RTSPServer {
delete scheduler;
}
int addSession(const std::string & sessionName, ServerMediaSubsession* subSession)
{
std::list<ServerMediaSubsession*> subSessionList;
if (subSession) {
subSessionList.push_back(subSession);
}
return this->addSession(sessionName, subSessionList);
}
int addSession(const std::string & sessionName, const std::list<ServerMediaSubsession*> & subSession)
{
int nbSubsession = 0;

Loading…
Cancel
Save